Koozali.org: home of the SME Server

Strange problem with LDAP

Offline larieu

  • *****
  • 214
  • +0/-0
Strange problem with LDAP
« 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

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?
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Strange problem with LDAP
« Reply #1 on: September 08, 2009, 09:33:19 PM »
I would raise a bug in bugzilla

TIA
Stefano

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Strange problem with LDAP
« Reply #2 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
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Strange problem with LDAP
« Reply #3 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

if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Strange problem with LDAP
« Reply #4 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

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Strange problem with LDAP
« Reply #5 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
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Strange problem with LDAP
« Reply #6 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Strange problem with LDAP
« Reply #7 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
if everybody's life around you is better, probably yours will be better
just try to improve their life