directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Using LDAPConnection class...
Date Mon, 06 Sep 2010 13:32:09 GMT
  On 9/6/10 3:21 PM, Arvind N wrote:
> Hi,
>     Just downloaded the ldap client api version 0.1 and wrote sample program to
> connect to a Active Directory seem to hit a weird problem.
> The tutorial does not provide much info so thought of checking in the list.
> Do let me know if I have got the wrong list.
>
> The piece that is failing is
>
> 			LdapConnection connection = new LdapConnection(svrIP, new Integer(svrPort));			
> 			BindRequest request = new BindRequest();
> 			request.setCredentials(password);
> 			request.setName("cn=Arvind N");			
> 			BindResponse resp = connection.bind(request);
> 			LdapResult result = resp.getLdapResult();
> 			System.out.println("the error message is " + result.getErrorMessage());	
>
> For this I always get an error message
> ** the error message is 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext
error, data 525, vece **
> Googled quite a bit to not avail and to dig deeper hit ethereal.
> Noticed that in the LDAP protocol extract, the bind request had something like this
> ....
> DN: cn=Arvind N

The user name must be the full DN, ie cn=Arvind N,< ... >, where <...> 
is the DN containing your user.


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com


Mime
View raw message