You are not logged in.
Pages: 1
Hi!
We have a problem with the LDAP groups import.
I can import the users and the group separately but the GLPI doesn't detect the users that are in the group.
By now I am importing users and groups manually in GLPI.
Is there any way to do this automatically?
How can i do it
Thanks
Offline
Hi dpujol.casas,
yes, use the script "ldap_mass_sync.php" in glpi/scripts folder.
In my opinion it would nicer to have ldap_mass_sync on the gui. But actually you have to use the php file.
The other method would be a csv import with the user information.
Offline
I've tried your script and this message appeared:
Imported: 0
Synchronized: 3
Deleted from LDAP: 0 .
I Have 250 Users and 10 groups i tihnk i'ts not working well.
Then I've tried the CSV way with the datainjection but still not working. Do you have a dummies manual for me or something? I think maybe I forget some other parameter... Anyway, thanks for your quick response! andreas8ghz
Offline
Hello dpujol.casas,
Here are some informations for the csv import:
http://wiki.glpi-project.org/doku.php?i … tsintoglpi
Last edited by andreas8ghz (2016-08-16 10:03:43)
Offline
Hi,
we have problem with the ldap sync, when i launch this script don't import nothing and says
[root@hgglpiweb01 scripts]# cd /var/www/html/dosi/scripts && php -q -f ldap_mass_sync.php -- action=0 server_id=2
Processing LDAP Server: LDAP_fhag, ID: 2
.............................................................................................................
LDAP Server size limit exceeded: user deletion disabled
Imported: 0
Synchronized: 0
Deleted from LDAP: 0
We use action 0 1 and 2, and the results is the same
But if we search in MySQL directly, the new users exists, so, GLPI import new users from LDAP BUT this new users doesn't appears in WEB, any idea??
If we try to import new users from WEB, doesn't works too.
Offline
Hi,
You need to configure Setup -> Authentication -> LDAP -> "Your Server" -> Groups as:
Search Type: In groups
User attribute containing its groups: blank
Filter to search in groups: (&(objectClass=group)(objectCategory=group)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(samaccountname=*$)))
Group attribute containing its users: member
Use DN in the search: yes
1. Import users through Administration -> Users -> LDAP directory link or through script: php -q -f ldap_mass_sync.php action=2
2. Import groups through Administration -> Groups -> LDAP directory link
3. Synchronize users again. You can use the script again: php -q -f ldap_mass_sync.php action=2
Script in /glpi/scripts
PS: On the Setup -> Authentication -> LDAP -> "Your Server" -> "BaseDN" you need to insert where are the groups and users
Offline
Pages: 1