Hi,
My name is Laurent BArdi i work for french CNRS you can contact me at laurent.bardi@ipbs.fr.
modify :
function.php
sysconfig.php
config.php
adding in config.php
define('SETUP_AUTH_LDAP_UID_ATTR','sAMAccountName');
// searching fo a user is not always uid=, could be sAMAccountName=
define('SETUP_AUTH_LDAP_MAIL_ATTR','mail');
// what attribute to search for mail
define('SETUP_AUTH_LDAP_FIRSTNAME_ATTR','givenname');
// what attribute to search for givenname
define('SETUP_AUTH_LDAP_LASTNAME_ATTR','sn');
// what attribute to search for lastname
define('SETUP_AUTH_LDAP_MEMBEROF_ATTR','mssfu30posixmemberof');
// what attribute to search for membership (see under)
define('SETUP_AUTH_LDAP_TEL_ATTR','telephonenumber');
// what attribute to search for phone
define('SETUP_AUTH_LDAP_ROOM_ATTR','physicaldeliveryofficename');
// what attribute to search for room/location
define('SETUP_AUTH_LDAP_UIDNUMBER_ATTR','uidnumber');
define('SETUP_AUTH_LDAP_GIDNUMBER_ATTR','gidnumber');
// the two last not used for the moment...
in functions.php :
dn2cn
//used for groups memberships
_login_create_user_ldap2
// this func validate the login/passwd,
then it search aatributes above and a) modifiy them if they change on the ldap/ad b) create the user if i does not exist.
c)it delete the user from the simple_sys_groups groups table (delete_user_from_all_groups) and recreate in this table the memberships gaved by SETUP_AUTH_LDAP_MEMBEROF_ATTR (create_group_add_user)
(if the group does not exists it is created)
d) the same with "location" ...
please i need to contact you by mail, because i ve some questions about "id" (in group and users table why not using uidnumber and gidnumbers if they exists?)
and many more questions :-}
modif 2/3
Logged In: YES
user_id=922402
Originator: NO
Hello,
I added the patch to the new release (0.310).
bye
Thomas