diff --git a/NEWS b/NEWS index 2b95b2c..1b0902e 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,10 @@ Contributed by qistoph reported in Issue #22: Reported by qistoph in Issue #20: . +** Make deprecated "ldapserver" work again. +Reported by giovannibajo in Issue #27: +. + * Version 2.3 (released 2010-04-14) ** New keyword "ldap_uri" added. diff --git a/pam_yubico.c b/pam_yubico.c index fc64a4f..044bc2c 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -259,8 +259,10 @@ authorize_user_token_ldap (const char *ldap_uri, else { if ((ld = ldap_init (ldapserver, PORT_NUMBER)) == NULL) - D (("ldap_init")); - return 0; + { + D (("ldap_init")); + return 0; + } } /* Bind anonymously to the LDAP server. */