Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
3c5d741c
Commit
3c5d741c
authored
Sep 29, 2009
by
Quanah Gibson-Mount
Browse files
print diagnostic messages when sasl_interactive_bind or start_tls_s failed
parent
128a8ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
clients/tools/common.c
View file @
3c5d741c
...
...
@@ -1287,7 +1287,10 @@ dnssrv_free:;
if
(
use_tls
)
{
rc
=
ldap_start_tls_s
(
ld
,
NULL
,
NULL
);
if
(
rc
!=
LDAP_SUCCESS
)
{
tool_perror
(
"ldap_start_tls"
,
rc
,
NULL
,
NULL
,
NULL
,
NULL
);
char
*
msg
=
NULL
;
ldap_get_option
(
ld
,
LDAP_OPT_DIAGNOSTIC_MESSAGE
,
(
void
*
)
&
msg
);
tool_perror
(
"ldap_start_tls"
,
rc
,
NULL
,
NULL
,
msg
,
NULL
);
ldap_memfree
(
msg
);
if
(
use_tls
>
1
)
{
exit
(
EXIT_FAILURE
);
}
...
...
@@ -1384,8 +1387,11 @@ tool_bind( LDAP *ld )
lutil_sasl_freedefs
(
defaults
);
if
(
rc
!=
LDAP_SUCCESS
)
{
char
*
msg
=
NULL
;
ldap_get_option
(
ld
,
LDAP_OPT_DIAGNOSTIC_MESSAGE
,
(
void
*
)
&
msg
);
tool_perror
(
"ldap_sasl_interactive_bind_s"
,
rc
,
NULL
,
NULL
,
NULL
,
NULL
);
rc
,
NULL
,
NULL
,
msg
,
NULL
);
ldap_memfree
(
msg
);
exit
(
rc
);
}
#else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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