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.


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
This message may contain privileged and/or confidential information.  If you 
receive this message in error or are not the intended recipient, you may not 
disseminate this message and you are requested to erase all copies of this 
message and attachments.


-------------------------------------------------------
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