mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-19 16:52:17 +01:00
Make deprecated "ldapserver" work again.
Reported by giovannibajo in Issue #27: <http://code.google.com/p/yubico-pam/issues/detail?id=27>.
This commit is contained in:
parent
c8eb802620
commit
e6bed0bfcd
4
NEWS
4
NEWS
@ -10,6 +10,10 @@ Contributed by qistoph reported in Issue #22:
|
|||||||
Reported by qistoph in Issue #20:
|
Reported by qistoph in Issue #20:
|
||||||
<http://code.google.com/p/yubico-pam/issues/detail?id=20>.
|
<http://code.google.com/p/yubico-pam/issues/detail?id=20>.
|
||||||
|
|
||||||
|
** Make deprecated "ldapserver" work again.
|
||||||
|
Reported by giovannibajo in Issue #27:
|
||||||
|
<http://code.google.com/p/yubico-pam/issues/detail?id=27>.
|
||||||
|
|
||||||
* Version 2.3 (released 2010-04-14)
|
* Version 2.3 (released 2010-04-14)
|
||||||
|
|
||||||
** New keyword "ldap_uri" added.
|
** New keyword "ldap_uri" added.
|
||||||
|
@ -259,9 +259,11 @@ authorize_user_token_ldap (const char *ldap_uri,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((ld = ldap_init (ldapserver, PORT_NUMBER)) == NULL)
|
if ((ld = ldap_init (ldapserver, PORT_NUMBER)) == NULL)
|
||||||
|
{
|
||||||
D (("ldap_init"));
|
D (("ldap_init"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Bind anonymously to the LDAP server. */
|
/* Bind anonymously to the LDAP server. */
|
||||||
rc = ldap_simple_bind_s (ld, NULL, NULL);
|
rc = ldap_simple_bind_s (ld, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user