Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
LDAP
View previous topic :: View next topic  
Author Message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Thu Apr 10, 2008 2:02 pm    Post subject: LDAP Reply with quote

I noticed that you have ldap setup for postfix and egroupware. Would it be possible for you to tell us what the flow is in setting up ldap?

Is that done thru PHPldapAdmin?

any input on how to proceed with setting up ldap, would be appreciated.

thanks
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Thu Apr 10, 2008 2:08 pm    Post subject: Reply with quote

I tried to login to PHPldapAdmin but it tells me user name and password are incorrect.

I changed root's password so logging with toor or the new root password does not work. I thinking I need to generate something with ldap?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Thu Apr 10, 2008 5:50 pm    Post subject: Reply with quote

Ldap password it's written in /et/openldap/slapd.conf
Doesn't have to do with /etc/passwd or /etc/shadow.
What did you changed in ldap config?
Is openldap running?

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Thu Apr 10, 2008 6:10 pm    Post subject: Reply with quote

thanks for the info.

I am going back to pristine install and play with how you setup ldap before I configure other apps that I want to include.

BTW, while egroupware is working fine at health site, I have walked away from using it. The egroupware development team is talking about forking, so I am evaluating some other solutions. Just thought you might be wondering why I am installing these other apps.

thanks
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 2:40 am    Post subject: Reply with quote

Okay, I did new install of sms. I downloaded develpkgs and installed. Downloaded kernel-2.6.24.

Rebooted sms. Everything appears to be working. Started ldap (/etc/rc.d/rc.openldap start). But I can not log into PHPldapAdmin.

login:
cn=Manager,dc=sms,dc=org

passwd: toor

says bad user or password.

Waiting in anticipation of your thoughts Smile
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Fri Apr 11, 2008 6:39 am    Post subject: Reply with quote

What's the output of
ps aux | grep slapd
You must see a /usr/libexec/slapd

Try to change the password in slapd.conf
make password with 'slappasswd'
rootpw 'output of slappasswd'

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 2:52 pm    Post subject: Reply with quote

root@sms:~# ps aux | grep slapd
root 20745 0.0 0.0 2000 632 pts/0 R+ 06:51 0:00 grep slapd

no /usr/libexec/slapd.
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 3:01 pm    Post subject: Reply with quote

so I tried creating new password but it did not work. As you can see this is a default sms server without any changes, other than installing develpkgs.
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 5:06 pm    Post subject: UPDATE Reply with quote

I decided to boot livecd and see if I could login to phpLdapadmin and I could! It works.

So, what happens when installed to hd? Is it the sources I downloaded? Anyway, I will keep investigating until you suggest some course of action.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Fri Apr 11, 2008 5:19 pm    Post subject: Reply with quote

baboo wrote:
root@sms:~# ps aux | grep slapd
root 20745 0.0 0.0 2000 632 pts/0 R+ 06:51 0:00 grep slapd

no /usr/libexec/slapd.

That means openldap is not running...
try to delete the pid at /var/lib/run/slapd.pid
or
/etc/rc.d/rc.openldap stop
/etc/rc.d/rc.openldap start

that's an issue with live install, as sms-text-installer doesn't delete the pid, cause it's on /var/lib/run and not /var/run/

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 5:36 pm    Post subject: Reply with quote

excellent! I am in middle of new install but will try that. Makes sense.

thanks
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 6:28 pm    Post subject: Reply with quote

finished new install. Removing slapd.pid worked! Now I can log into phpLdapadmin.

Now on to other discoveries which will drive you insane Wink

thanks for the help - another reason I LOVE sms.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional