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 2011-05-11 09:54:10

Diamond
Member
Registered: 2010-11-30
Posts: 20

How to automatic import Users from LDAP

Hello all,

Please guide me how to automatic import users from LDAP that satisfied the filters:
basdn: ou=user, ou=office1, dc=domain, dc=com
Search firlter for users: (&  (&(objectClass=user)(objectCategory=person)))

basdn: ou=user, ou=office2, dc=domain, dc=com
Search firlter for users: (&  (&(objectClass=user)(objectCategory=person)))

basdn: ou=user, ou=office3, dc=domain, dc=com
Search firlter for users: (&  (&(objectClass=user)(objectCategory=person)))

We have 3 offices, so please help us to automatic import using cron
I am using GLPI 0.78.5 on PHP 5.2.6-1+lenny6, apache 2.2.9

Does this http://www.glpi-project.org/forum/viewt … p?id=19098 help me? I think it will automatically import all users. I just want import the users with filters in my example above.

Thanks for helping me.


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#2 2011-05-11 10:03:26

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: How to automatic import Users from LDAP

Ah,

If I create 3 LDAP Directory like my example above, could

Sorry the english wiki is not complete

You have to create two cron task :

0 8 * * * cd /var/www/glpi/scripts && php -q -f ldap_mass_sync.php -- action=1 server_id=1
0 8 * * * cd /var/www/glpi/scripts && php -q -f ldap_mass_sync.php -- action=0 server_id=1

First line for synchronize existing users
second for import new users in LDAP

For the 8 AM it's just an exemple

automatically import users from 3 LDAP directory?


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

Board footer

Powered by FluxBB