Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
1a862732
Commit
1a862732
authored
Jun 25, 2000
by
Kurt Zeilenga
Browse files
Fail if ldap_set_option fails
parent
bf9231ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
clients/tools/ldapmodify.c
View file @
1a862732
...
...
@@ -376,6 +376,7 @@ main( int argc, char **argv )
{
fprintf
(
stderr
,
"Could not set LDAP_OPT_PROTOCOL_VERSION %d
\n
"
,
version
);
return
EXIT_FAILURE
;
}
if
(
use_tls
&&
ldap_start_tls_s
(
ld
,
NULL
,
NULL
)
!=
LDAP_SUCCESS
)
{
...
...
clients/tools/ldapmodrdn.c
View file @
1a862732
...
...
@@ -365,6 +365,7 @@ main(int argc, char **argv)
{
fprintf
(
stderr
,
"Could not set LDAP_OPT_PROTOCOL_VERSION %d
\n
"
,
version
);
return
EXIT_FAILURE
;
}
if
(
use_tls
&&
ldap_start_tls_s
(
ld
,
NULL
,
NULL
)
!=
LDAP_SUCCESS
)
{
...
...
clients/tools/ldappasswd.c
View file @
1a862732
...
...
@@ -326,6 +326,7 @@ main( int argc, char *argv[] )
if
(
rc
!=
LDAP_OPT_SUCCESS
)
{
fprintf
(
stderr
,
"Could not set LDAP_OPT_PROTOCOL_VERSION %d
\n
"
,
version
);
return
EXIT_FAILURE
;
}
if
(
use_tls
&&
ldap_start_tls_s
(
ld
,
NULL
,
NULL
)
!=
LDAP_SUCCESS
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment