ASE Labs
Welcome Guest. Please register or log in now. There are 51 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login
You are at ASE Labs » Articles » Reviews Index » OpenLDAP Installation On Ubuntu

OpenLDAP Installation On Ubuntu

Author
Aron Schatz
Posted
March 7, 2008
Views
41486
OpenLDAP Installation On Ubuntu
Directory services run nearly every enterprise network today. Each place you see Active Directory, LDAP is working its magic. Find out how to easily install a LDAP server of your own on Ubuntu.
Tags Linux Guides Ubuntu OpenLDAP LDAP

Page 2: Steps 3-5, Conclusion

Step 3: Test LDAP server

Code

aronschatz@aseserver:~$ ldapsearch -x -b dc=asetest
# extended LDIF
#
# LDAPv3
# base <dc=asetest> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# asetest
dn: dc=asetest
objectClass: top
objectClass: dcObject
objectClass: organization
o: ASE LDAP
dc: asetest

# admin, asetest
dn: cn=admin,dc=asetest
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2


The command "ldapsearch -x -b dc=asetest" will basically dump records in the base DN of dc=asetest without using authentication. You should see basic things such as the admin entry. The LDAP directory is good to go.

Step 4: Look at the config file

The file /etc/ldap/slapd.conf has the configuration for the slapd package. In it you will find answers that you gave during the configuration step. The lines that are important are...

Code

access to attrs=userPassword,shadowLastChange
        by dn="cn=admin,dc=asetest" write
        by anonymous auth
        by self write
        by * none


This group says that only the admin and self can change the userPassword field. That makes perfect sense since you don't want some random person changing someone else's password. Permissions in slapd are easy to configure by looking at other examples in the config file.

If you changed the config file, you must restart slapd. "sudo /etc/init.d/slapd restart" will restart the process. This step is actually the final step needed to get a working LDAP server. The next step is optional and extremely useful.

Step 5: Install phpLDAPadmin

We need an easy way to administrate the LDAP server. While the command line tools work fine, it would be nice to use a web interface. Thankfully, phpLDAPadmin comes in to the picture. Type...

aronschatz@aseserver:~$ sudo apt-get install phpldapadmin

Which will install phpLDAPadmin. This install will grab information from the slapd configuration and setup to work with the LDAP server. You can now navigate to that server's name or IP address and append /phpldapadmin/ and get to the phpLDAPadmin page in a browser.

phpldwelcome.png


This is the initial welcome screen of phpLDAPadmin. This is nice, but you will want to Login to the server to do anything useful.

phpldlogin.png


The Login DN is a distinguished name. This is a full typed LDAP entry. Mine would be "cn=admin,dc=asetest". Let's say your server directory wa ldap.aseserver.asetest and the name was admin. The Login DN would be "cn=admin,dc=ldap,dc=aseserver,dc=asetest". The password is your admin password.

phpldedit.png


Once you are authenticated, you can administer the LDAP server. It is very easy to make groups and new users, but a follow-up guide will go into making LDAP work for centralized logins and such.

Conclusion:

Setting up OpenLDAP on Ubuntu is simple and effective. Within minutes, you have a fully functional LDAP server waiting to be used. The is the first step in making a centralized logon facility and directory services for everyone on your network. Stay tuned for another guide how to make a schema that works for different uses. For further reading, buy some LDAP books. I'm sure it is a good bathroom read.

If you have any questions, feel free to »post in the forums or email me.
« Previous Page  
Page 1
Page 2
View As Single Page Print This Page Print Entire Article
Related Articles
  • DOS USB Bootable Drive
  • RAID Technology Part 2: RAID Levels
  • Cisco IOS: Home Router Configuration
  • RAID Technology Part 1
  • Video Card Recommendations
members/attachments/upload/2008/03/07/2415.png 1.png members/attachments/upload/2008/03/07/2416.png 2.png members/attachments/upload/2008/03/07/2417.png 3.png members/attachments/upload/2008/03/07/2418.png 4.png members/attachments/upload/2008/03/07/2419.png 5.png members/attachments/upload/2008/03/07/2420.png 6.png members/attachments/upload/2008/03/07/2421.png 7.png members/attachments/upload/2008/03/07/2422.png 8.png members/attachments/upload/2008/03/07/2423.png 9.png members/attachments/upload/2008/03/07/2424.png 10.png members/attachments/upload/2008/03/07/2425.png 11.png members/attachments/upload/2008/03/07/2426.png phpldwelcome.png members/attachments/upload/2008/03/07/2427.png phpldlogin.png members/attachments/upload/2008/03/07/2428.png phpldedit.png

Title

Medium Image View Large
Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
  • Happy System Administrator Day!
  • Apple Releases OS X 10.7 Lion
  • More Android Apps Found to be Malware
  • This Weeks News
  • Happy Birthday USA!
  • Windows Phone Gets Angry Birds, Custom Rings Coming To Mango
Latest Articles
  • Sapphire Edge HD4 Mini PC
  • Logitech G710+ Mechanical Gaming Keyboard
  • EnerPlex Kickr IV And Jumpr Solar Power Pack
  • Kingston Wi-Drive
  • Kingston SDX10V/128GB SDXC Memory
  • In-Win K1 All In One Convertible Case
  • Kingston MobileLite G3 USB3 SDXC Card Reader
  • Synology DS712+ Network Application Server
  • Rapoo Wireless Touchpad Keyboard E9080
  • Netgear NeoTV NTV200 Streaming Player
Latest Topics
  • Microsoft readies new Xbox as entertainment hub
  • P A R A S Y T E [A Samurai's Story]
  • Pokemon: The Ongaku Region
  • Watch Latest Movies Online Free
  • Watch Fast and Furious 6 Online Free
  • watch movies online free without downloading
  • Watch Epic Online Free
  • Watch The Hangover 3 Online Free
  • What are you listening to now?
  • Use social media to reach out to youth: Modi
  • Vindu Dara Singh nabbed for IPL scam links
  • Random Fact of the Day
  • Christina McHale energy sapped
  • Yoon Hee had no choice but to live
  • At first McHale thought it was a sinus
  • Google I/O 2013: an Android developer's preview
Advertisement
Advertisement
Affiliate Reviews
  • Debian GNU/Hurd 2013 Release Brings New Packages at Phoronix
  • Intel Ultrabook Performance Is Faster With Mesa 9.2 at Phoronix
  • Hot Relocation HDD To SSD Support For Btrfs at Phoronix
  • Phoronix Test Suite 4.6.0 "Utsira" Released at Phoronix
  • New Intel X.Org Driver Supports All Of Haswell at Phoronix
  • Mesa 9.1.3 Release Corrects Some Bugs at Phoronix
  • SQLite Now Faster With Memory Mapped I/O at Phoronix
  • Intel Linux OpenGL Driver Leading Over Apple OS X at Phoronix
  • Microsoft Releases Skype For Linux 4.2, Has Bug-Fixes at Phoronix
  • Qt For Tizen Launches, Based On Qt 5.1 at Phoronix
  • KTAP Released For Linux Kernel Dynamic Tracing at Phoronix
  • Linux 3.10-rc2 Kernel Takes In A Few Extra Pulls at Phoronix
  • Manufacturers Announce PSUs Ready for Intel Haswell CPUs at Hardware Secrets
  • ZOTAC GeForce GTX TITAN AMP! Edition 6144 MB Review at techPowerUp!
Press Release
  • CommProve Launches Mobile Broadband Insight for LTE
  • SOTI Welcomes Optidev as a Gold Elite Partner in Europe
  • Whirlpool Corporation Chairman and CEO Jeff Fettig Champions Next Big Opportunities to Positively Impact the Environment During Keynote Address at EE Global
  • Farnell Element14 Launches new Wireless Measurement Device From Fluke
  • =?ISO-8859-1?Q?Crytek's_CryENGINE=AE_3_Already_?= =?ISO-8859-1?Q?Primed_for_Xbox_One_Development?=
  • Microsoft unveils Xbox One: the ultimate all-in-one home entertainment system
  • Startup Aims to Change the Way We See Brake Lights Forever
  • 365 Main Successfully Completes SSAE 16 Examination of its 16 Data Centers
  • Atmel ARM- and AVR-based Microcontrollers Power Secret Labs' Ultra-low-power Smart Watch
  • TEK RECON: E3 bound and bringing live action online gaming to life!
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 20 (8 Cached)] [Rows: 334 Fetched: 77] [Page Generation time: 0.30942177772522]