Re: [PHP] Re: php ldap

2005-08-26 Thread Santosh Jambhlikar
thanks bartels, ldap_bind is working find i just used uid instead of cn. :) Björn Bartels wrote: that looks good, i think you should better use "uid" instead of "cn"... btw, i mentioned some authentication-problem earlier in this list. take a look at the php-manual @ ldap_bind() for a worka

Re: [PHP] Re: php ldap

2005-08-26 Thread Björn Bartels
that looks good, i think you should better use "uid" instead of "cn"... btw, i mentioned some authentication-problem earlier in this list. take a look at the php-manual  @  ldap_bind()  for a workaround if the same thing is happening to you (testscript works fine, loginscript does not !?!)... You'l

[Fwd: Re: [PHP] Re: php ldap] soory...

2005-08-26 Thread Björn Bartels
>this program is giving me "*Invalid DN syntax* " error. what's wrong? >cn >for the the user is "user" the DN should look like this uid={username},..., dc={yourdomain}, dc={TLD} ask your admin for further options... cheers Björn Bartels -Development/IT-Services- --

[Fwd: Re: [PHP] Re: php ldap]

2005-08-26 Thread Björn Bartels
>this program is giving me "*Invalid DN syntax* " error. what's wrong? >cn >for the the user is "user" the DN should look like this cn={username},..., dc={yourdomain}, dc={TLD} ask your admin for further options... cheers Björn Bartels -Development/IT-Services- --

Re: [PHP] Re: php ldap

2005-08-26 Thread Santosh Jambhlikar
$ldaprdn = 'user'; $ldappass = 'userpass'; $ldapconn = ldap_connect("ldap.mydomain.com") or die("Could not connect to LDAP server."); if ($ldapconn) { $ldapbind = ldap_bind($ldapconn,$ldaprdn, $ldappass); if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP

Re: [PHP] Re: php ldap

2005-08-26 Thread Mark Rees
"Santosh Jambhlikar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > then can i output the SMD5 of my password in php. > > > Jeff Loiselle wrote: > > > Santosh Jambhlikar wrote: > > > >> Hi , > >> > >> I have a ldap server the user password are stored in that. my php > >> ldasearch r

Re: [PHP] Re: php ldap

2005-08-25 Thread Santosh Jambhlikar
then can i output the SMD5 of my password in php. Jeff Loiselle wrote: Santosh Jambhlikar wrote: Hi , I have a ldap server the user password are stored in that. my php ldasearch result says that the result is ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc= i want to compare this

[PHP] Re: php ldap

2005-08-25 Thread Jeff Loiselle
Santosh Jambhlikar wrote: Hi , I have a ldap server the user password are stored in that. my php ldasearch result says that the result is ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc= i want to compare this password with the user given password in other application (obviously php)

[PHP] Re: PHP LDAP query - need to add Exchange fields

2003-12-22 Thread Phil Dowson
Ben, I was trying the same thing, but I am not sure you are using the same setup as me. My office runs a windows 2000 domain with a Exchange server 2000 box. All profile information is stored in the windows 2000 domain controller, and the exchange server accesses the information from there. So