LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2018, 06:34 AM   #1
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Rep: Reputation: Disabled
Problems about LDAP directory


Hello

I have the centos 6.6 that I need for the LDAP directory. Does this command: /usr/local/libexec/slapd (starting Ldap service) have some response?
 
Old 05-16-2018, 07:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
Originally Posted by Jezda View Post
Hello

I have the centos 6.6 that I need for the LDAP directory. Does this command: /usr/local/libexec/slapd (starting Ldap service) have some response?
That command will produce no output, so use ps to see if slapd is running:
Code:
ps ax|grep slapd
May I ask, why didn't you use your distro's package manager (yum), to install the openldap package?
 
Old 05-16-2018, 07:26 AM   #3
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
@bathory,
tnx
I have installed openldap, i must to start because server was down. I cannot find a way to start LDAP to connect to Apache Directory Studio Executing this command ps ax|grep slapd giv this feedback: 1536 0.0 0.0 103252 828 pts/2 R+ 12:45 0:00 grep slapd
 
Old 05-16-2018, 07:53 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
Originally Posted by Jezda View Post
@bathory,
tnx
I have installed openldap, i must to start because server was down. I cannot find a way to start LDAP to connect to Apache Directory Studio Executing this command ps ax|grep slapd giv this feedback: 1536 0.0 0.0 103252 828 pts/2 R+ 12:45 0:00 grep slapd
How did you install openldap? Because from the slapd path, it's obvious you didn't use yum, but you installed it by compiling the sources.
Anyway from the ps output slapd is not running. Try to start again in debug mode and see what you get:
Code:
/usr/local/libexec/slapd -d1
 
Old 05-17-2018, 02:25 AM   #5
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
How did you install openldap? Because from the slapd path, it's obvious you didn't use yum, but you installed it by compiling the sources.
Anyway from the ps output slapd is not running. Try to start again in debug mode and see what you get:
Code:
/usr/local/libexec/slapd -d1
this is response:

[sudo@localhost ~]$ /usr/local/libexec/slapd -d1

ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /usr/local/etc/openldap/ldap.conf
ldap_init: using /usr/local/etc/openldap/ldap.conf
ldap_init: HOME env is /home/sudo
ldap_init: trying /home/sudo/ldaprc
ldap_init: trying /home/sudo/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
5afd1ef8 @(#) $OpenLDAP: slapd 2.4.44 (Mar 27 2017 15:40:21) $
root@localhost.localdomain:/Install/OpenLDAP/openldap-2.4.44/servers/slapd
ldap_pvt_gethostbyname_a: host=localhost.localdomain, r=0
5afd1ef8 daemon_init: listen on ldap:///
5afd1ef8 daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
5afd1ef8 daemon: bind(7) failed errno=13 (Permission denied)
5afd1ef8 daemon: bind(7) failed errno=13 (Permission denied)
5afd1ef8 slap_open_listener: failed on ldap:///
5afd1ef8 slapd stopped.
5afd1ef8 connections_destroy: nothing to destroy.
[sudo@localhost ~]$
 
Old 05-17-2018, 03:26 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
5afd1ef8 daemon: bind(7) failed errno=13 (Permission denied)
5afd1ef8 daemon: bind(7) failed errno=13 (Permission denied)
5afd1ef8 slap_open_listener: failed on ldap:///
You need to execute the command as root, or using sudo.
 
Old 05-17-2018, 03:43 AM   #7
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
You need to execute the command as root, or using sudo.
I am log in as sudo. What is the problem?
 
Old 05-17-2018, 03:56 AM   #8
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
When I try to login as root, I get the message: password incorect. I am sure that is correct pass, because, when I try to open user manager, I need that root pas, in this case the pass passes...
 
Old 05-17-2018, 05:20 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
Originally Posted by Jezda View Post
I am log in as sudo. What is the problem?
The problem is that you don't have permissions to bind to port 389. Must be root (or use sudo) for this.

Quote:
Originally Posted by Jezda View Post
When I try to login as root, I get the message: password incorect. I am sure that is correct pass, because, when I try to open user manager, I need that root pas, in this case the pass passes...
I don't know. Perhaps you can change the root password and try again.

Last edited by bathory; 05-17-2018 at 05:30 AM.
 
Old 05-17-2018, 08:58 AM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
It doesn't matter if you think the password is correct or not. If the system says it's incorrect, it won't work.
 
Old 05-28-2018, 05:55 AM   #11
Jezda
LQ Newbie
 
Registered: May 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
It is weird. I can not log in to the system with root password and username "root", but but it does not work on console.
 
Old 05-28-2018, 08:54 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Quote:
Originally Posted by Jezda View Post
It is weird. I can not log in to the system with root password and username "root", but but it does not work on console.
You can follow the instructions here to reset root password.
 
Old 05-28-2018, 09:54 AM   #13
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
my lowly opinion ls that LDAP is not really light weight and for linux involved allot of security issues and tons of configuration

unless your managing a large office that requires LDAP, i would seek a simpler solution

if you do require LDAP, i suggest using windows 10 or apple high sierra, for example:

https://support.apple.com/kb/PH26277...S&locale=en_US

i think it may save you time and money in getting it working, though i'm sure hacking it in linux might be more fun

Last edited by X-LFS-2010; 05-28-2018 at 09:57 AM.
 
Old 05-28-2018, 09:30 PM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,400
Blog Entries: 9

Rep: Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655Reputation: 3655
maybe sudo still works?

OP, try
Code:
sudo su -
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to search LDAP directory recursively? peterson.julia Linux - General 3 10-14-2010 03:15 PM
Active Directory vs LDAP alex r Linux - Software 26 04-07-2010 05:47 AM
LDAP Vs. Active Directory. ghaleb.aoude@yahoo.com LinuxQuestions.org Member Intro 2 08-19-2009 08:15 AM
active directory to open ldap sumitrai Linux - Newbie 5 08-13-2009 04:16 PM
LDAP and Active Directory Ecalvam Linux - Networking 5 11-10-2005 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration