Koozali.org: home of the SME Server

LDAP questions

Abe Loveless

LDAP questions
« on: August 23, 2003, 01:03:14 AM »
Where can I go to find out how the LDAP system works?  As far as I know, my ldap service is running fine... at least the service is.

But, I get the following errors in /var/log/messages when I update the Directory settings from the server-manager.

Aug 22 14:12:54 PE2650 slapd[3899]: conn=4 op=181 MOD dn="uid=blathrop,dc=lth5,dc=k12,dc=il,dc=us"
Aug 22 14:12:54 PE2650 slapd[3899]: conn=4 op=181 RESULT tag=103 err=32 text=
Aug 22 14:12:54 PE2650 e-smith[10233]: failed to modify entry for uid=blathrop,dc=lth5,dc=k12,dc=il,dc=us: No such object at /etc/e-smith/events/ldap-update/S80ldap-update line 153.
Aug 22 14:12:54 PE2650 slapd[5685]: conn=4 op=182 MOD dn="uid=blavite,dc=lth5,dc=k12,dc=il,dc=us"
Aug 22 14:12:54 PE2650 slapd[5685]: conn=4 op=182 RESULT tag=103 err=32 text=
Aug 22 14:12:54 PE2650 e-smith[10233]: failed to modify entry for uid=blavite,dc=lth5,dc=k12,dc=il,dc=us: No such object at /etc/e-smith/events/ldap-update/S80ldap-update line 153.
Aug 22 14:12:54 PE2650 slapd[3899]: conn=4 op=183 MOD dn="uid=blipe,dc=lth5,dc=k12,dc=il,dc=us"
Aug 22 14:12:54 PE2650 slapd[3899]: conn=4 op=183 RESULT tag=103 err=32 text=
Aug 22 14:12:54 PE2650 e-smith[10233]: failed to modify entry for uid=blipe,dc=lth5,dc=k12,dc=il,dc=us: No such object at /etc/e-smith/events/ldap-update/S80ldap-update line 153.


I've looked at S80ldap-update line 153, but all it does is report the output, I think:
        $result->code &&
            warn "failed to modify entry for $dn: ", $result->error ;

What started this search is that I can't see any of my users in the Local LDAP search of turba (the webmail addressbook).


Any thoughts???

Bill Kampmeyer

Re: LDAP questions
« Reply #1 on: August 23, 2003, 08:01:08 AM »
Mr. Loveless, the errors and symptoms you describe are similar to a problem I had soon after I changed the domain name of my server.  Familiar I hope?  I found a solution in bug ID 99 at
http://www.e-smith.org/bugs/index.php3?op=showBug&bugID=99 copied below.
---------------------------------
Problem: The LDAP server is not correctly reconfigured after changing the domain name from the console. This causes failures in webmail and other applications which access the LDAP database.
Workaround: # stop ldap
/etc/rc.d/init.d/ldap stop

# remove old ldap data
rm /home/e-smith/db/ldap/*ldif
rm /var/lib/ldap/*

# rebuild directory from scratch
/etc/e-smith/events/actions/ldap-rebuild

# start ldap
/etc/rc.d/init.d/ldap start
----------------------------------------------

Enjoy your work at
http://www.tech-geeks.org/contrib/loveless/
Good fortune. Love this fine server!

BK

Abe Loveless

Re: LDAP questions
« Reply #2 on: August 23, 2003, 07:07:00 PM »
BK saves the day again!!

And, unless I'm mistaken, this little problem is going to resolve part of another issue that I've been having with add/delete users.

Thanks for pointing me in the right direction!

Guck Puppy

Re: LDAP questions
« Reply #3 on: August 24, 2003, 12:06:22 AM »
BK wrote:
>Love this server.

Love this forum! Imagine trying to do such good things without it...

andrej

Re: LDAP questions
« Reply #4 on: August 25, 2003, 11:09:02 AM »
Hello LDAP geeks !

I want to authenticate my RH9 client using LDAP authentication, Have anybody tried this before ?! Do you have any experiencies doing this? What info is stored in LDAP (e-smit sheme of course)

Tx,

Andrej

Maggard

Re: LDAP questions
« Reply #5 on: August 25, 2003, 10:46:53 PM »
andrej wrote:

> I want to authenticate my RH9 client using LDAP
> authentication, Have anybody tried this before ?! Do you have
> any experiencies doing this? What info is stored in LDAP
> (e-smit sheme of course)

Was there anything a search of these phorums (set to go back further then 30 days) didn't answer?

ergozd

LDAP questions
« Reply #6 on: May 28, 2004, 02:14:41 PM »
To BK

Hi there!

I followed your solution step by step and got
Code: [Select]
[root@erginsme04 root]# /etc/e-smith/events/actions/ldap-rebuild
slapadd: could not parse entry (line=16)
slapadd exited 256 at /etc/e-smith/events/actions/ldap-rebuild line 114.


What do I do? (I have SME6.0 final)

Best rgds, Ergin

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
LDAP questions
« Reply #7 on: March 21, 2005, 04:02:24 AM »
Unfortunatelly the rebuild process does not recreate the users, is there anyway for me to do that without having to re-install the server? Even new added users do not become part of the .ldif file.
The only thing writen to the file is the object Organization.
All the files under /var/lib/ldap/ are also created.
My log messages only complain about an issue with IPV6 protocol not linking, but I found it's irrelevant.
I installed the phpldapadmin package and it would be much easier if I could import the information there. But where is it at?
Any other tricks to get this going?
BTW: I started with a hostname and then replaced to the new one, and that's the reason why it broke.
Thanks,

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
LDAP questions
« Reply #8 on: March 21, 2005, 03:57:55 PM »
Quote from: "ergozd"

I followed your solution step by step and got
Code: [Select]
[root@erginsme04 root]# /etc/e-smith/events/actions/ldap-rebuild
slapadd: could not parse entry (line=16)
slapadd exited 256 at /etc/e-smith/events/actions/ldap-rebuild line 114.


What do I do? (I have SME6.0 final)


If you have followed the howto, and still have a problem, there is a bug. Please report it to the bug tracker.

ergozd

LDAP questions
« Reply #9 on: March 21, 2005, 05:43:24 PM »
Hi Charlie!

This was approx 10 months ago, if my memory does not fool me I was going to try use LDAP for several logins (I think Metadot was one of them)...

Anyway, I think there was a bug reported for this, I will check how it looks and drop a few lines to bug tracker.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
LDAP questions
« Reply #10 on: March 21, 2005, 06:12:02 PM »
I actually went ahead and created a bug as well, just so you kow!

Regards,

larsk

LDAP questions
« Reply #11 on: April 14, 2005, 08:26:57 AM »
Hi all,

i've followed the same steps and encountered the same message. In my case, there was a special character (u-umlaut or trema) used in a name.

Cheers,

Lars