Hi,
I want to use an ldap-server step by step for more
tasks. In the moment I have stored usernames with the
following inforamtion
dn: uid=xyz,ou=apache,dc=cologne,dc=de
uid: xyz
cn: xyz
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}xxx
shadowLastChange: 11569
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 507
gidNumber: 100
homeDirectory: /home/xyz
I can use this ldapserver to authenticate a user
by his password using php.
1. $conn=ldap_connect($global_ldapServer);
if conn is ok:
2. $ldapUser= $global_userPrefix . $user . $global_baseDn;
$pass=$_POST["password"];
$bind = ldap_bind($conn, $ldapUser, $pass);
if $bind is ok my password is ok
Now I want to authenticate the same but under a
different name - the email-Name, eg
not user xyz but user xyz.theo
I thought it would work by an alias of the form
dn: uid=xyz.theo,ou=apache,dc=cologne,dc=de
objectclass: alias
objectclass: extensibleObject
uid: xyz.theo
aliasedobjectname: dn: uid=xyz,ou=apache,dc=cologne,dc=de
but that way does not work
I don't find something on this topi, I hope I searched
good enough.
By the way
I didn't know much about ldap.
please be tolerant, if my questions are to stupid :-)
Thanks
karsten
---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the
SUBJECT of the message.