No ldap request from LDAP Management plugin
-
Server
- FOG Version: 1.4.2
- OS: debian jessie
Plugin
- LDAP Management
- php ldap module installed
Description
“Search failedInternal Server Error” from LDAP Management when try to search people.
Server log:
[:error] [pid 12909] [client XXX] PHP Fatal error: Uncaught exception ‘LogicException’ with message ‘Class LDAPAssociation could not be loaded’ in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php:1268\nStack trace:\n#0 [internal function]: spl_autoload(‘LDAPAssociation’)\n#1 /var/www/html/fog/lib/fog/fogmanagercontroller.class.php(1268): class_exists(‘LDAPAssociation’)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3181): FOGManagerController->search(‘’, true)\n#3 /var/www/html/fog/lib/fog/fogpagemanager.class.php(257): FOGPage->searchPost()\n#4 /var/www/html/fog/management/index.php(54): FOGPageManager->render()\n#5 {main}\n thrown in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 1268, referer: http://server/fog/management/index.php?node=ldap -
Maybe the folder permissions? Can you do a
ls -la /var/www/html/fog/lib/plugins
?
-
Thanks Fernando
ls -la /var/www/html/fog/lib/plugins
total 68
drwxr-xr-x 16 www-data www-data 4096 juin 19 14:23 .
drwxr-xr-x 13 www-data www-data 4096 juin 19 14:23 …
drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 accesscontrol
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 capone
drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 example
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 fileintegrity
-rw-r–r-- 1 www-data www-data 340 juin 19 14:23 index.php
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 ldap
drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 location
drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 persistentgroups
drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 pushbullet
drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 site
drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 slack
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 taskstateedit
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 tasktypeedit
drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 windowskey
drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 wolbroadcast -
@st.mu said in No ldap request froma LDAP Management plugin:
“Search failedInternal Server Error” from LDAP Management when try to search people.
In the login page?
The permissions are OK
-
@st.mu said in No ldap request froma LDAP Management plugin:
LDAPAssociation
Can you please run:
grep -rl 'LDAPAssociation' /var/www/
This class doesn’t exist nor has it ever. @Fernando-Gietz realized this and fixed it. FOG version 1.4.2 had this fix, so I don’t know how you can be on 1.4.2 and have this problem. I suspect you have two potential installations running with conflicting data.
-
@Tom-Elliott said in No ldap request froma LDAP Management plugin:
grep -rl ‘LDAPAssociation’ /var/www/
Hi Tom,
root@:~# grep -rl 'LDAPAssociation' /var/www/ root@:~#
You right, FOG is installed on a test server and there are 2 folders fog_1.4.3 and fog_1.4.2… how to check conflicting data ?
-
@st-mu Thanks for reporting this. Can replicate the issue. Moved to bug reports.
@Tom-Elliott This piece of code is causing it… Sorry don’t have the time to look into this in detail.
-
Backup my test serveur from scratch, installed fog 1.4.2 and…same error.
So as Sebastian said a piece of code is causing it, I think i have to wait… -
I don’t think that’s the piece of code causing the problem. I run with the ldap plugin installed and have never seen this issue occur at all.
-
If you’d like, please install the git working branch:
git clone https://github.com/fogproject/fogproject.git /opt/fogprojectworking cd /opt/fogprojectworking git pull git checkout working git pull
I’m seeing if simply preventing autoload from occurring will fix this issue, though I still cannot replicate.
-
@Tom-Elliott
I installed the git working branch:
You are currently running version: 885132
Latest stable version is 1.4.3
Latest svn version is 6075
Latest git version is 1.4.2No more errors in apach log (thanks) but I tryed many settings and ldap requests do not give an answer.
How to configure ldap plugin in order to do request (anonymous) like
uid=login,ou=people,$baseDN
cn=groupname,ou=groups,$baseDN
member=uid=login,ou=people,$baseDNSorry, i’m almost rookie in LDAP and linux (…also english ^^'…)
-
@st.mu Maybe this can help?
https://forums.fogproject.org/topic/10063/ldap-plugin-on-fog-1-3-3/5?page=1# -
I’ve already seen this post.
my settings look like:
I choose OpenLDAP template.
-
@st.mu Is your Domain on an “Open LDAP” ldap tree?
-
@Tom-Elliott
yes -
@st.mu If that’s the case, shouldn’t your “group attribute” value be ‘member’ instead of ‘groups’
-
Your user attribute should be cn not ‘uid’
-
@Tom-Elliott
I’ve also tried that and it doesn’t work.
I tried generic LDAP with uid as User Name Attribute and groups as Group Member Attribute (who knows…), but same “O results found” answer… -
@st.mu You don’t search users in ldap management.
All ldap plugin does is enable you to login with LDAP user accounts, there’s no searching users. I don’t know where you got the idea that you could find users using this plugin.
-
@Tom-Elliott
I am confused,
I have misunderstood how works the plugin. I thought searching users by lhe LDAP Management section enable to check ldap conf is ok.
I will test in the right way.Thanks Tom