Koozali.org: home of the SME Server

SME 8 LDAP not working - SOLVED

Offline larieu

  • *****
  • 214
  • +0/-0
SME 8 LDAP not working - SOLVED
« on: June 04, 2010, 06:29:04 AM »
clean install
installed SOGO contrib

sogo start but I was not able to login
in that moment I hoped that no user on server
using contrib "moving to new hardware" I was able to port all users from old one

now I saw that also LDAP queries from Thunderbird clients don't work

the error from sogo login attempt looks like this

Code: [Select]
#
Jun  4 07:26:11 mail slapd[23658]: conn=4548 fd=13 ACCEPT from IP=127.0.0.1:57285 (IP=0.0.0.0:389)
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=0 BIND dn="" method=128
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=0 RESULT tag=97 err=0 text=
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=1 SRCH base="ou=groups,dc=mydomain,dc=ro" scope=2 deref=0 filter="(cn=admin)"
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=1 SRCH attr=dn
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
Jun  4 07:26:11 mail slapd[23658]: conn=4549 fd=14 ACCEPT from IP=127.0.0.1:57286 (IP=0.0.0.0:389)
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=0 BIND dn="" method=128
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=0 RESULT tag=97 err=0 text=
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=1 SRCH base="ou=users,dc=mydomain,dc=ro" scope=2 deref=0 filter="(uid=admin)"
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=1 SRCH attr=dn
Jun  4 07:26:11 mail slapd[23658]: conn=4548 op=2 UNBIND
Jun  4 07:26:11 mail slapd[23658]: conn=4548 fd=13 closed
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=2 UNBIND
Jun  4 07:26:11 mail slapd[23658]: conn=4549 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
Jun  4 07:26:11 mail slapd[23658]: conn=4549 fd=14 closed


if I'll check the files of LDAP seems to be ok
If I use phpLDAPadmin I am not able to browse my LDAP schema

any idea to work around
thanks
« Last Edit: June 04, 2010, 12:18:20 PM by larieu »
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: SME 8 LDAP not working
« Reply #1 on: June 04, 2010, 08:58:21 AM »
In sme8, it should be, ou=Users, and ou=Groups.  Notice the capital letters.

John
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SME 8 LDAP not working
« Reply #2 on: June 04, 2010, 09:51:26 AM »
any idea to work around

no, but you should open a bug in bugzilla, thank you

Offline larieu

  • *****
  • 214
  • +0/-0
Re: SME 8 LDAP not working
« Reply #3 on: June 04, 2010, 12:07:46 PM »
Stefano just raised

http://bugs.contribs.org/show_bug.cgi?id=6017

mrjhb3

ok
any hint where to modify this
I expect to look into templates
(maybe custom ones)
can you show give me the path where to search (I don't want to take all of templates on count)

or maybe on DB?

thanaks
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: SME 8 LDAP not working - SOLVED
« Reply #4 on: June 04, 2010, 12:21:37 PM »
I found on

/etc/e-smith/templtes-custom/home/e-smith/db/ldap/ldif

several files

moved into one "safe place"
and issued one

Code: [Select]
signal-event ldap-update

now it seems that LDAP start to work

I think I've first put phpLDAPadmin and that installed sogo
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME 8 LDAP not working - SOLVED
« Reply #5 on: June 05, 2010, 10:29:50 AM »
I think I've first put phpLDAPadmin and that installed sogo
If that caused the custom template fragment to be installed, then that package should be fixed as the templates-custom tree is meant for overrides to the template fragments installed by RPMs. RPMs should never install templates in the templates-custom tree.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME 8 LDAP not working - SOLVED
« Reply #6 on: June 05, 2010, 10:31:23 AM »
Moving this topic to General Discussion forum where it is more appropriate. Please do not post SME Server 8 related threads in the SME 7.x forums. Thanks in advance.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)