Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: larieu on September 08, 2009, 09:04:09 PM

Title: Strange problem with LDAP
Post by: larieu on September 08, 2009, 09:04:09 PM
I sow by chance that one of the users on the server is not in LDAP

I tried to find a solution on manual, wiki or forum a solution for this

I found something which seems to be outdated (some commands don't work) at the bottom of this page
http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter4 (http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter4)

also from various search on forum I sow several question without any reply
because I don't want to reactivate that old one I'll start another

using the idea from the manual I managed to recreate the LDAP
but strange thing is that that particular user is not in the new file

this is what I've deed

Code: [Select]

service ldap stop
mkdir /home/bakp/20090908LDAP
mv /home/e-smith/db/ldap/****.com.ldif /home/bakp/20090908LDAP/
signal-event ldap-update
service ldap start


at the end of this - that particular user is missing
:(

I've tried also to start the LDAP without the database -
this give me an error on connection (exactly what I expected)

what I made wrong?
It exist any way to compare the entries from LDAP with the users from the server?
Title: Re: Strange problem with LDAP
Post by: Stefano on September 08, 2009, 09:33:19 PM
I would raise a bug in bugzilla

TIA
Stefano
Title: Re: Strange problem with LDAP
Post by: larieu on September 08, 2009, 10:14:44 PM
Between the time I've deed this
signal-event post-upgrade
signal-event reboot


I "dumped" the account into a file

Code: [Select]
db accounts show > /home/bakp/20090908LDAP/accounts

after several easy filters I checked with the ****.com.ldif
the files are identical in number of users and users names

and now the strange thing
the file ***.com.ldif CONTAIN that particular USER
and if I give the command

Code: [Select]

cat /home/e-smith/db/ldap/****.com.ldif | grep anna

the user appear correct

but any method to find in LDAP give the same "missing" user
I've tried

horde -> address book -> search -> by name or by email (partial or full)
thunderbird -> Address Book -> add LDAP settings -> search direct or search with the special search (full name or email address or partial parts)
installed PhpLDAPadmin contrib - not in list
several linux LDAP connectors (GO LDAP client,  LDAP Administration tool...)

I'll try to find how to make a script to check all UID's from the dumped database by ldap
to see if this is the only "missing" user
Title: Re: Strange problem with LDAP
Post by: larieu on September 09, 2009, 08:49:37 AM
Stefano

it seems that all recent entries are missing in LDAP search
but all of them are in the files in /var/...

is anyone who know how to look directly in mysql  entry after the user data
to see if there all is ok

Title: Re: Strange problem with LDAP
Post by: Stefano on September 09, 2009, 09:33:30 AM
larieu

if something doesn't work 'out of the box' you should report as a bug.. it could be a misconfiguration too, but in any case bugzilla is the right place to discuss it

Stefano
Title: Re: Strange problem with LDAP
Post by: larieu on September 09, 2009, 10:24:57 AM
Stefano I am sue sure you're right

I'll try to pay the time to put it there (I must create an user ...)

I want to check another thing
is somewhere on server a limit of how many entries are returned from LDAP queries?
I imagine that the new entries are not sent from the server
this should be one issue
Title: Re: Strange problem with LDAP
Post by: janet on September 09, 2009, 10:36:00 AM
larieu

Quote
...I must create an user ...

Which in bugzilla will only take 2 minutes, so go do it now, and then report your LDAP issues to bugzilla, rather than waste any more time reporting here.
Title: Re: Strange problem with LDAP
Post by: larieu on September 09, 2009, 11:43:01 AM
Actualy the user was the "piece of cake part"

the navigation and finding the "Unknown" category was the hard part
:(

here seems to be the bug page

http://bugs.contribs.org/show_bug.cgi?id=5461 (http://bugs.contribs.org/show_bug.cgi?id=5461)