You can use the *User Principal Name (UPN) *as username:

[EMAIL PROTECTED]

If you have special characters in username, then you have to encode the UPN as UTF-8

I hope this helps
Alex


I can't figure out how to login/bind to Active directory using the
sAMAccountName attribute (the user's login attribute).

What do I use to set TLDAPSend.UserName (I can't use the DN since I don't
know the CN attribute)?  Or am I missing something.  Do I need to bind/login
using something else (that's preconfigured) and then search for the
sAMAccountName attribute and password for the individual user?  I was always
thinking the cn attribute was the login attribute, but this obviously isn't
the case.

-----Original Message-----
From: Lukas Gebauer [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 10:17 AM
To: [email protected]
Subject: RE: [Synalist] LDAP

Are there any examples of simply authenticating to an ldap directory. In IP*works, it's a matter of setting the principal, password, and DN and then calling the Bind() method. If the user is authenticated the proper status code is returned. With synapse, I'm not quite sure how to set the DN using the TLDAPSend class.

Just use DN as TLdapsend.Username  and your password as TLdapsend.password
before you call Bind or Bindsasl.





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to