You are not logged in.
rhooo
Login Field: glpi -> samaccountname
Lastname : sn
Firstname: givenname
Xavier Caillaud
Blog GLPI Infotel
Offline
I dont really get this .
I have configured user "glpi" in the AD , Do u mean to say
Login Field: glpi -> glpi
Lastname : sn
Firstname: glpi
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
login field = adsi edit field to verify his login so it's : samaccountname
and for add his firstname and lastname in glpi ->
Lastname : sn
Firstname: givenname
use my config example :
Xavier Caillaud
Blog GLPI Infotel
Offline
Still nt working, honestly speaking I m nt getting anythingCan i see any screenshot of a wrking config
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
can you go on irc channel #glpi on freenode.net ?
Xavier Caillaud
Blog GLPI Infotel
Offline
OK FINALLY its says TEST Successful
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
I was messing with the variables and root DN smwhere. OK now what next ?? I need to import users from the AD to GLPI ?? or wil they be done automatically ??
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
Cool
So now you can import ad users or if the user log on , it will be added.
And next you must create a rule for entity and profile affectation.
Xavier Caillaud
Blog GLPI Infotel
Offline
I open the ldap.php page as u said ,when I click on "Import Users" it shows me something like this
Search filter for users
(glpi -> samaccountname=user)
No users to be imported
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
Xavier Caillaud
Blog GLPI Infotel
Offline
Again not getting what u are trying to say (dont understand French using Google translate)
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
Now I get this error when i try to import users
PHP ERROR: ldap_search() [function.ldap-search]: Search: Bad search filter in /var/www/html/helpdesk/inc/ldap.function.php at line 180
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
(&(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=fr)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
Xavier Caillaud
Blog GLPI Infotel
Offline
I have to put the search filter as
the quoted text or
like this
(glpi -> &(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=fr)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
PS : I have Windows 2003 AD
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
Offline
I have already done that , i think there is sm issue here with the filter string.
I have done one thing , I have started my LDAP Browser
and searched at my BASE DN with the filter
(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=net)
I get to see 1000 users defined in my AD
and when I put the complete string I dont get a single record so one thing is for sure that
my search string is only the one mentioned above .
Now on to the next case
On the ldap.import.php page shuld I give something like this
(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=powergrid,DC=net) ???
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
or maybe
(glpi -> samaccountname=(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=powergrid,DC=net))
PS : IS the & required in filter ???
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
Offline
i tired with no filter , i guess it takes
(glpi -> samaccountname=*)
as the default filter . Hence I get the same error
PHP ERROR: ldap_search() [function.ldap-search]: Search: Bad search filter in /var/www/html/helpdesk/inc/ldap.function.php at line 180
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
No you don't understand, this is on your ad configuration that you insert your filter not in import/sync field on ldap.php.
Xavier Caillaud
Blog GLPI Infotel
Offline
Ok i have tried as you said, I have put the connection filter in the AD page as directed ,
Now when I try to import users , I dont get any error but it says "No Users to be Imported" .
I even tried through any user defined in the AD but I m nt able to login and get the error
"unsuccessful authorization in LDAP"
Plz suggest something I need to close this urgently
Last edited by dhiraj (2007-12-31 09:38:54)
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
so i think the user you yuse to read the AD in your AD setup in glpi is false or there is a problem. (rootdn & password)
Xavier Caillaud
Blog GLPI Infotel
Offline
I hv nt given any special permissions to the ad user "glpi" in the AD , do i need to give any special perm to him ??
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline
rootdn and pass seems to be no issue coz the test connection would not be successful otherwise.
Plus I acted on ur advice and tested the user with LDAP Browser, this AD user can search info but cannot edit anything , it is just defined in the users OU of the AD
OS : Fedora Core 7
GLPI : 0.7 OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27
Langage : PHP 5.2.4 Syslog-NG: 2.0.5
Offline