Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i 'll answer you as i still biginner to openldap!!
because of the importance of the centralized authentication,companies use directory services to
have a database of all users in thier network and some information about them (fist name,last name, email address,..)
one of these directory services is ldap and its opensource version (openldap)
If you install the Samba documentation on your Linux box (there may be a separate package for them), you'll find a really excellent manual in:
/usr/share/doc/<samba-version>/html
which includes how to setup Samba to use an existing LDAP service. That should cover the second part.
As Egyptian says, an LDAP service provides information on users (from it's database). This can include security information on what groups they should be member of, what they're password is etc. as well as contact information. "LDAP" is the network protocol, "OpenLDAP" is a Free implementation of the clients and server. A Kerberos service is often used in conjunction with an LDAP service to provide strong encryption to communications between the user clients and the services that they access.
An LDAP service is often both a contacts directory for mail clients and an authentication source for logins. If you are being asked to set up an LDAP service from scratch, then you need to do a fair bit of reading and planning - as the network's central authority on who users are, it's the most important service after DNS, and it requires a similar amount of effort learning the concepts.
Ok I tried editing the slapd.conf file from this guide.
Edited the slapd.conf and top.ldif as followed.
But after typing "ldapadd -x -D 'cn=manager,dc=foo,dc=com' -W -f top.ldif", it prompt me for a password. What password do I enter? cn=Manager's password?
slapd.conf file
Code:
# Schemas to use
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/
rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/
kerberosobject.schema
database ldbm
suffix "dc=foo,dc=com"
rootdn "cn=Manager, dc=foo,dc=com"
rootpw secret
directory /var/lib/ldap
index default eq
index objectClass,uid,uidNumber,gidNumber eq
index cn,mail,surname,givenname eq,sub
# Access Control (See openldap v.2.0 Admin Guide)
access to attr=userPassword
by self write
by anonymous auth
by dn="cn=manager,dc=foo,dc=com" write
by * compare
access to *
by self write
by dn="cn=manager,dc=foo,dc=com" write
by * read
this is the password of the ldap administrator (defined by rootdn)
you can change the field rootpw in the file slapd.conf to your preferred password
or put it encrypted by using ldappasswd (i don't remember the syntax)
Originally posted by egyptian this is the password of the ldap administrator (defined by rootdn)
you can change the field rootpw in the file slapd.conf to your preferred password
or put it encrypted by using ldappasswd (i don't remember the syntax)
Add information to the LDAP database from the file called top.ldif. ldapadd -f top.ldif
Use simple authentication -x
The request is being made by the administrator -D 'cn=Manager,dc=foo,dc=com'
Prompt for a password -W
At the password prompt, just enter the password that you have specified in the slapd.conf file. secret
By the way, you have spelt the Manager with a capital letter in the slapd.conf so you need to use a capital letter in the command.
Originally posted by jamrock Every database needs an administrator. The administrator has super user rights in the database. He can add users, delete users, etc.
With OpenLDAP, you specify the name of the administrator and his password in the slapd.conf file.
In your example, the administrator is cn=Manager,dc=foo,dc=com
Add information to the LDAP database from the file called top.ldif. ldapadd -f top.ldif
Use simple authentication -x
The request is being made by the administrator -D 'cn=Manager,dc=foo,dc=com'
Prompt for a password -W
At the password prompt, just enter the password that you have specified in the slapd.conf file. secret
By the way, you have spelt the Manager with a capital letter in the slapd.conf so you need to use a capital letter in the command.
Thanx.
So, after adding, if I want to check the database, I just need to check the slap.conf file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.