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 2009-02-12 23:55:40

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

User not found or several users found

hi all,


i configure LDAP succefull

Test of connection to LDAP directory
Test successful (Main server : company)


but, when i try get user from a external link in the "Automatically add a user of an external source"

login = user and then click on addldap, i received this message

User not found or several users found


any ideas?

Offline

#2 2009-02-13 00:17:16

MHI
Member
From: Germany
Registered: 2007-06-28
Posts: 367

Re: User not found or several users found

Did you use an LDAP browser to see if your DN settings are setup correctly, as this sounds to me, like a setup problem, to have a succesful connection to your LDAP does not mean it will work out of the box, but without any further details and not knowing your LDAP structure it's difficult to give some hints to the right direction.

Have you read this Wiki already ? http://glpi-project.org/wiki/doku.php?id=en:ldap

If not, I would suggest to do so, as there is a lot of vital information, how to set it up correctly.

What happens, if you choose "LDAP Link" and then "Import New Users" ? Do you see at least some of them, or same error ?


RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45  --  GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script

Offline

#3 2009-02-13 10:51:42

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: User not found or several users found

- version of glpi
- which ldap server
- what's your ldap configuration in glpi

Offline

#4 2009-02-13 15:46:37

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

hi MHI, wawa,

yea i read that wiki and when i try LDAP link appear same error than external source.

i am deployment GLPI 0.71.5 with W2K3, IIS 6.0, MySQL latest version, PHP 5.2.8 and my doa¿main struture have 15 domain controller in the world.

this is my config in GLPI for LDAP conections

server: ldap://server.domain.com
basedn: DC=domain,DC=com
rootdn: CN=user,OU=IT,OU=Users,OU=CAL,OU=LA,OU=company,DC=domain,DC=com
Connection filter= (objectClass=user)
Use TLS= No
How LDAP aliases should be handled: never deferenced

ldaphk6.jpg
w988.png

Last edited by andrewfelipe (2009-02-13 17:02:57)

Offline

#5 2009-02-13 15:51:04

MHI
Member
From: Germany
Registered: 2007-06-28
Posts: 367

Re: User not found or several users found

Are you sure that you have a user called "user" in your LDAP ? Try to enter your login name that you use in the domain and hit "Add LDAP" and let me know what happens. You may also have to change the objectclass search string depending on your structure. Just try with empty settings in the search filter from the root entity and see if some usernames will come up.

Last edited by MHI (2009-02-13 15:53:50)


RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45  --  GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script

Offline

#6 2009-02-13 15:55:27

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

no, user is a example,

MHI when u said: You may also have to change the objectclass search string depending on your structure.

could u explain this to me?

Offline

#7 2009-02-13 16:01:51

MHI
Member
From: Germany
Registered: 2007-06-28
Posts: 367

Re: User not found or several users found

Well, for a first simple test, just as exlpained before, just go to the root entity of GLPI and then to Users -->LDAP Link --> Import New Users --> Choose your LDAP Config and clean the search filter for users, so that it is empty and hit search. This should bring up a list of users (at least it does for me), but as said, we probably have total different LDAP setup here.


RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45  --  GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script

Offline

#8 2009-02-13 16:30:54

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

hi,


search filter for users : blank, clean

show... No users to be imported

sad

Offline

#9 2009-02-13 16:59:09

MHI
Member
From: Germany
Registered: 2007-06-28
Posts: 367

Re: User not found or several users found

Are you sure or did you check with an LDAP browser that your Users are directly under DC=domain,DC=com ?


RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45  --  GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script

Offline

#10 2009-02-13 17:10:24

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: User not found or several users found

hello
can you try this connection filter : (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

can you log on your AD with an ldap browser using the rootdn/pass ?

Offline

#11 2009-02-13 17:32:44

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

look this image pls, i use ADSI

connection filter have more parameters than only user,

objectClass
top,person,organizationalPerson,user

valuesadsiwx3.jpg
w897.png

Offline

#12 2009-02-13 17:44:53

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

yessssssssssssssss, its Ok.

i seee with adsi objetClass param and this show this

objectClass
top,person,organizationalPerson,user


so...

i try it

(&(objectClass=top)(objectClass=person)(objectClass=organizationalPerson)(objectCategory=User))

and,  successss smile

look this image, all users to import smile=)=)=)=)=)=)=)=)=)=)


successadandglpibq4.jpg
w949.png

Last edited by andrewfelipe (2009-02-13 18:30:48)

Offline

#13 2009-02-13 17:51:24

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

anyone knwo how import only 1 OU, because my domain is very big?


ty for u help MHI smile=)

Last edited by andrewfelipe (2009-02-13 17:51:48)

Offline

#14 2009-02-13 17:58:23

andrewfelipe
Member
Registered: 2009-02-09
Posts: 11

Re: User not found or several users found

wooott,

only i modify this param


rootdn = OU=CAL,OU=LA,OU=company,DC=domain,DC=com

this param allow import selected OU, in this case GLPI import only users from OU=CAL.


smile=)=)=)=)=) ty MHI

Last edited by andrewfelipe (2009-02-13 18:31:28)

Offline

Board footer

Powered by FluxBB