I can't successfully login or bind without using the DN. I'm sure it's my
lack of LDAP knowledge, so I'm not sure what I'm doing wrong.  Just seems
like when someone logs on to my application using their username, I want to
use that username and password (along with some ldap configuration
information I'm storing in a config file on my app server) to bind and login
(basically get authenticated).  The only way I can get it to work is if the
cn attribute is the login since it's part of the DN.  Am I approaching this
all wrong?  Do I need to actually bind and login using a Valid DN (stored in
the config file) and then search the directory for that sAMAccountName and
password to authenticate the user?   

-----Original Message-----
From: Alexander Bauer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 8:55 AM
To: [email protected]
Subject: Re: [Synalist] LDAP


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