Professional Documents
Culture Documents
LIKE US ON FACEBOOK
Unixmen
39,569 people like Unixmen.
Like
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Configure OpenLDAP
Open the /etc/ldap/ldap.conf file and find and edit the lines as
shown below with your domain name and IP Address.
unixmen@server:~$ sudo vi /etc/ldap/ldap.conf
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writ
able.
BASE dc=unixmen,dc=com
URI ldap://192.168.1.200
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
Facebook social plugin
UNIXMEN LATEST TWEETS
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Run the Configuration assistant.
unixmen@server:~$ sudo dpkg-reconfigure slapd
The following screen should appear. Select No and press Enter.
Enter the DNS domain name.
Unixmen
+ 7,580
Follow +1
Tweets by @unixmen
UNIXMEN LATEST TWEETS
TOP 10 RECENT
COMMENTS
Leonardo
Monday
it looks ok,
so far . but
in the linux version you
can't use the...
faharuru
Hi..... i'v
CentOS 6.5
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Enter the Organization name(i.e your company name).
Enter the LDAP admin password which you created in the earlier
step.
CentOS 6.5
64bit on
vps here's my java java
version "1.7.0_55"
OpenJDK Runtime
Environment (rhel-
2.4.7.1.el6_5-x86_64
u55-b13) OpenJDK...
Jesse
In .conkyrc
change
own_window_type
override to
own_window_type
desktop
asdf
Please don't
encourage
people to
pipe to bash from the
internet! This can go
wrong...
fairoz
Hi Thanks
you for
detail
explanation about conky
it worked perfectly for
me...
Enock Seth
Nyamador
Welcome
JahFou! :-D
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Re-enter the password.
Select the backend database.
markzona
The last
years I
used the
standard text based
conky, but this one looks
much...
JahFou
Thanks
for this
SK
Thanks for
the
appreciation. It gives us
the encourage to work
hard.
Elmer
Hello my
friend, SK..
Thanks for
this a wonderful share
came to you.. i hoping
more...
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Select Yes to delete the database automatically when we are
planning to remove LDAP server.
.
Select Yes to move old database.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Select No and Press Enter.
LDAP server is up and running now.
Test LDAP server
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Enter the following command ldapsearch -x, then you will have
the following result.
unixmen@server:~$ ldapsearch -x
# extended LDIF
#
# LDAPv3
# base <dc=unixmen,dc=com> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# unixmen.com
dn: dc=unixmen,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: unixmen
dc: unixmen
# admin, unixmen.com
dn: cn=admin,dc=unixmen,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
LDAP Server
Administration
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Administration of LDAP server in command mode is quite difficult, so
that here i have used a easier GUI administration tool called
phpldapadmin.
Install phpldapadmin
unixmen@server:~$ sudo apt-get install phpldapadmin
Create a symbolic link for phpldapadmin directory.
unixmen@server:~$ sudo ln -s /usr/share/phpldapadmin/ /
var/www/phpldapadmin
Now open the /etc/phpldapadmin/config.php file and replace
the domain names with your own values. Goto Define LDAP
Servers section in the config file and edit the following lines as
shown below.
unixmen@server:~$ sudo vi /etc/phpldapadmin/config.php
$servers = new Datastore();
$servers->newServer('ldap_pla');
$servers->setValue('server','name','Unixmen LDAP Server
');
$servers->setValue('server','host','192.168.1.200');
$servers->setValue('server','base',array('dc=unixmen,dc
=com'));
$servers->setValue('login','bind_id','cn=admin,dc=unixm
en,dc=com');
Restart the apache service.
unixmen@server:~$ sudo /etc/init.d/apache2 restart
Make sure that you have opened apache server port 80 and LDAP
default port 389 in your firewall/router configuration.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
unixmen@server:~$ sudo ufw allow 80
Rules updated
Rules updated (v6)
unixmen@server:~$ sudo ufw allow 389
Rules updated
Rules updated (v6)
Now point your web browser with
http://192.168.1.200/phpldapadmin. The following screen
should appear.
Click login on the left pane and make sure the domain details are
correct and enter ldap admin password which you have created in
the previous steps and press Authenticate.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Now the main console screen of phpldapadmin will open. You can see
the LDAP domain unixmen.com will be found there. Here you can
add objects such as Organizational Unit, Users and groups etc.
Sample Configuration
Lets create some sample objects using phpldapadmin interface and
check them whether they are presented in the LDAP server
configuration.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Click on the + sign near the line dc=unixmen and click
Create new entry here link.
Select Generic-Organizational Unit and enter the name of the
Organizational unit(Ex.sales) and Click Create Object.
Click Commit.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Now the newly created OU will be found under the main ldap domain.
Click on the sales ou tree on the left pane and click on Create a
child entry.
Select Generic:Address book entry. Enter firstname as
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
senthil, last name as kumar and Common name(cn) as
senthil kumar and click Create Object.
Click Commit.
Now the newly created user senthil kumar will be found under
sales ou.
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Also you can verify using the command ldapsearch -x.
unixmen@server:~$ ldapsearch -x
# extended LDIF
#
# LDAPv3
# base <dc=unixmen,dc=com> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# unixmen.com
dn: dc=unixmen,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: unixmen
dc: unixmen
# admin, unixmen.com
dn: cn=admin,dc=unixmen,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# sales, unixmen.com
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
dn: ou=sales,dc=unixmen,dc=com
objectClass: organizationalUnit
objectClass: top
ou: sales
# senthil kumar, sales, unixmen.com
dn: cn=senthil kumar,ou=sales,dc=unixmen,dc=com
cn: senthil kumar
givenName: senthil
sn: kumar
objectClass: inetOrgPerson
objectClass: top
# search result
search: 2
result: 0 Success
# numResponses: 5
# numEntries: 4
For questions please refer to our Q/A forum at :
http://ask.unixmen.com/
Share this Article: 12 0 0 4
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
0 0
0 people like this
SK
Senthilkumar, aka SK, is a Linux enthusiast, FOSS
Supporter & Linux Consultant from Tamilnadu, India. A
passionate and dynamic person, aims to deliver quality
content to IT professionals and loves very much to write
and explore new things about Linux, Open Source, Computers and
Internet.
Linux distributions, Linux Mint, Linux tutorials, opensource, Ubuntu,
Uncategorized
LDAP openldap
Setup LDAP Server in
CentOS, RHEL, Scientific
linux 6.5/6.4/6.3
Howto-Install SVN
server in Centos 6.x
Install LDAP Server in
Centos Step by Step
Solaris 10 Directory
Server LDAP
RECOMMENDED FOR YOU LDAP OPENLDAP LINUX DISTRIBUTIONS
LINUX TUTORIALS
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API
Comments for this thread are now closed.
Comments Community
Sort by Newest
search: 2
result: 32 No such object
Please help me. Either reply me here or mail me solution at reetesh.aiit@gmail.com
# numResponses: 1
many thank!