Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoș Haiduc
OpenLDAP
Commits
a3ec4091
Commit
a3ec4091
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Remove -r from ldapmodify.
parent
28ed7e8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clients/tools/ldapmodify.c
+5
-6
5 additions, 6 deletions
clients/tools/ldapmodify.c
doc/man/man1/ldapmodify.1
+4
-9
4 additions, 9 deletions
doc/man/man1/ldapmodify.1
with
9 additions
and
15 deletions
clients/tools/ldapmodify.c
+
5
−
6
View file @
a3ec4091
...
...
@@ -48,7 +48,7 @@ static char *sasl_mech = NULL;
static
char
*
sasl_secprops
=
NULL
;
#endif
static
int
use_tls
=
0
;
static
int
ldapadd
,
replace
,
not
,
verbose
,
contoper
,
force
;
static
int
ldapadd
,
not
,
verbose
,
contoper
,
force
;
static
LDAP
*
ld
=
NULL
;
#define LDAPMOD_MAXLINE 4096
...
...
@@ -102,7 +102,6 @@ usage( const char *prog )
" specified by
\"
-f file
\"
.
\n
"
"Add or modify options:
\n
"
" -a add values (default%s)
\n
"
" -r replace values
\n
"
" -F force all changes records to be used
\n
"
"Common options:
\n
"
...
...
@@ -180,9 +179,6 @@ main( int argc, char **argv )
case
'F'
:
/* force all changes records to be used */
force
=
1
;
break
;
case
'r'
:
/* default is to replace rather than add values */
replace
=
1
;
break
;
/* Common Options */
case
'C'
:
...
...
@@ -376,6 +372,9 @@ main( int argc, char **argv )
prog
);
return
(
EXIT_FAILURE
);
#endif
case
'r'
:
/* replace (obsolete) */
break
;
case
'R'
:
#ifdef HAVE_CYRUS_SASL
if
(
sasl_realm
!=
NULL
)
{
...
...
@@ -844,7 +843,7 @@ process_ldif_rec( char *rbuf, int count )
addmodifyop
(
&
pmods
,
modop
,
val
.
bv_val
,
NULL
);
goto
end_line
;
}
else
{
/* no modify op: use default */
modop
=
replace
?
LDAP_MOD_
REPLACE
:
LDAP_MOD_
ADD
;
modop
=
ldapadd
?
LDAP_MOD_
ADD
:
LDAP_MOD_
REPLACE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
doc/man/man1/ldapmodify.1
+
4
−
9
View file @
a3ec4091
...
...
@@ -11,8 +11,6 @@ ldapmodify, ldapadd \- LDAP modify entry and LDAP add entry tools
[\c
.BR \-c ]
[\c
.BR \-r ]
[\c
.BR \-n ]
[\c
.BR \-v ]
...
...
@@ -61,8 +59,6 @@ ldapmodify, ldapadd \- LDAP modify entry and LDAP add entry tools
[\c
.BR \-c ]
[\c
.BR \-r ]
[\c
.BR \-n ]
[\c
.BR \-v ]
...
...
@@ -135,9 +131,6 @@ Continuous operation mode. Errors are reported, but
will continue with modifications. The default is to exit after
reporting an error.
.TP
.B \-r
Replace existing values by default.
.TP
.B \-n
Show what would be done, but don't actually modify entries. Useful for
debugging in conjunction with -v.
...
...
@@ -255,8 +248,10 @@ flag is set (or if the program was invoked as
and "modify" otherwise.
.LP
If changetype is "modify" and no "add:", "replace:", or "delete:" lines
appear, the default is "replace" if the -r flag is set and "add"
otherwise.
appear, the default is "replace" for and "add"
.BR ldapmodify (1)
for
.BR ldapadd (1).
.LP
Note that the above exceptions to the
.BR slapd.replog (5)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment