Table of Contents
SuSE LDAP
Summary: On this page I'll explain on how to setup ldap as an authentication source for Suse Enterprise Server 10
Date: Around 2008
Refactor: 7 December 2024: Checked links and formatting.
Introduction
Since the Novell Linux User Management doesn't work as well as desired I decided to take a look at simple LDAP authentication for SLES boxes, or SLED or openSuSE. They all work the same for as far as the user authentication is concerned. This turned out to be pretty simple, following these steps:
- Configuring install sources
- Setting up LDAP authentication
- Check and troubleshoot
- Sudo
Configure Install Sources
When the LDAP client is being configured you need additional packages to be installed. By default the pam-ldap and nss-ldap packages need to be installed, which will be done automatically if the correct sources are installed. We have an internal SuSE installation and update server so that was not an issue for me:
As you can see I configured the installation source, the online source (for upgrades) and the update source.
Setting Up LDAP Authentication
LDAP Authentication is configured in Yast, so startup yast:
- yast2
- Go to “Security and Users” → “User Management” → “Expert Options” → “Authentication and User Sources”
At this point the configuration is going to check the installation sources, when they are not available or missing it will tell you so and you won't get the chance to configure the LDAP source. When the wizard is done you see the possible authentication sources. Click on LDAP:
As the server you can use an IP-address or the DNS name, and be sure to select a search base high enough to find all the users that need to log on. When you're done save and exit and you're done.
Check And Troubleshoot
Check users:
suse:~ # id sjoerd uid=610(sjoerd) gid=606(ssh-access) groups=606(ssh-access),613(ssh-nam),612(ssh-managedservices))
The user is recognized including the secondary groups it's member of. You're done!
Sudo
Now all that's left is to configure sudo. Because this is quite important and because there is a lot of information and to learn about it I created a special page on it.