You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-08-12 10:25:27

dpujol.casas
Member
Registered: 2016-08-12
Posts: 2

LDAP Group

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

#2 2016-08-12 10:46:05

andreas8ghz
Member
Registered: 2016-06-22
Posts: 22

Re: LDAP Group

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

#3 2016-08-12 12:14:51

dpujol.casas
Member
Registered: 2016-08-12
Posts: 2

Re: LDAP Group

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

#4 2016-08-12 14:05:09

andreas8ghz
Member
Registered: 2016-06-22
Posts: 22

Re: LDAP Group

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

#5 2016-08-25 16:47:02

gairhald
Member
Registered: 2016-08-25
Posts: 1

Re: LDAP Group

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

#6 2017-03-21 20:34:29

queiroga
Member
Registered: 2017-03-21
Posts: 1

Re: LDAP Group

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

Board footer

Powered by FluxBB