Package: aolserver4-nsldap
Version: 0.8-2.1
Severity: normal
Tags: patch
aolserver4-nsldap does not support the "bind" subcommand, which is
required in some use cases. A patch to support this has been posted to
the AOLserver mail list in 2008 but never imported to the upstream CVS.
http://www.mail-archive.com/[email protected]/msg12073.html
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages aolserver4-nsldap depends on:
ii aolserver4 4.5.1-mobigroup.5 AOL Web Server 4 (Program)
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libldap-2.4-2 2.4.11-1+lenny1 OpenLDAP libraries
ii tcl8.4 8.4.19-2 Tcl (the Tool Command Language) v8
aolserver4-nsldap recommends no packages.
aolserver4-nsldap suggests no packages.
-- no debconf information
diff -r nsldap/nsldap.c nsldap-sussdorf/nsldap.c
1373a1374
> int err;
1796a1798,1820
> } else if (STREQ(cmd, "bind")) {
> /*
> * nsldap bind $lh username password
> */
> char *dn, *rdn;
> int lrc, deloldrdn = 0;
>
> err = ldap_simple_bind_s(handlePtr->ldaph, argv[3], argv[4]);
>
> ldap_simple_bind_s(handlePtr->ldaph, handlePtr->user, handlePtr->password);
>
> if (err != LDAP_SUCCESS) {
> Ns_Log(Error, "nsldap: could not bind for %s : %s",
> argv[3], ldap_err2string(err));
> Tcl_SetResult(interp, "0", TCL_STATIC);
> return TCL_OK;
> } else {
> Tcl_SetResult(interp, "1", TCL_STATIC);
> return TCL_OK;
> }
>
> return TCL_OK;
>
diff -r nsldap/README nsldap-sussdorf/README
186a187,191
> ns_ldap bind $ldaph username password
>
> - Issues an LDAP bind with the username and password, returns 1 (true) if the username/password combination
> is valid for authentication, 0 otherwise.
>