Hi all, Researching the use of ns_ldap in OpenACS it seems that the version of ns_ldap in wide use is http://www.sussdorff.de/resources/nsldap.tgz which seems to have additional support for ldap bind (note I am not an LDAP expert so forgive me if I'm using the wrong lingo).
The diff is pasted below. Should this be committed to the tree? 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. > -- Mark Aufflick contact info at http://mark.aufflick.com/about/contact -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.