Duh - some genius (Not I! I do unix) put a backslash in my DN ( CN=Burris\, Celeste Suliin) I needed to double it to get the DN to LDAP correctly.
Thanks all for your help. On 5/16/05 4:38 PM, "Elliot Foster" <[EMAIL PROTECTED]> wrote: Burris, Celeste Suliin wrote: > Well, that is progress of a sort. I just copied and pasted from the sample > program. > > The response I get is > > error: 49: 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext > error, data 525, vece at ./Net-LDAP.pl line 31, <DATA> line 225. > > I'd like some hints on what "AcceptSecurityContext error" means. Hint on what error "AcceptSecurityContext error" is: http://www.directory-info.com/LDAP/LDAPErrorCodes.html <http://www.directory-info.com/LDAP/LDAPErrorCodes.html> It's microsoft's way of saying "Invalid Credentials". That's what a normal/real Directory would say. Check your DN and password. > On 5/16/05 2:10 PM, "Elliot Foster" <[EMAIL PROTECTED]> > wrote: > > > > Burris, Celeste Suliin wrote: > >>I'm running the standard test program, and appear to get a successful > > bind, > >>but any search says I don't have a successful bind. >> >>I'm completely baffled. > > > You're not checking for an error response during the bind. You might want > to do > something like: > > my $bind = $ldap->bind($binduser, password => "$bindpass"); > if ($bind->code) { > # spit out an error here > } else { > # looks like we were successful. > } > > Or at least something like that. As it is, you're just checking the return > of > the function. It performs the bind function, it just so happens it runs > into an > error. <snip>
