Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Installationshandbuch Seite 209

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 208
Chapter 11. Cloning open source virtual servers 189
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE dc=my-domain,dc=com
...
5. Search for the new user ID just added by using the ldapsearch command:
# ldapsearch -x uid=mikemac
...
# mikemac, People, my-domain.com
dn: uid=mikemac,ou=People,dc=my-domain,dc=com
uid: mikemac
cn:: bWlrZW1hYyA=
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
loginShell: /bin/bash
uidNumber: 10000
gidNumber: 10000
homeDirectory: /home/mikemac
userPassword:: e1NTSEF9Q1hhSGMwU1NnQlkzTEZ6ZlJ5ZHV2aVhkQkhuaUxqNC8=
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
6. The output shows that the user ID exists in the LDAP database. Now you may want to set
the password with the ldappasswd command. You need to provide a new password for the
new user and you also need to provide the LDAP administrator password.
# ldappasswd -x -D "cn=Manager,dc=my-domain,dc=com" -W -S
"uid=mikemac,ou=People,dc=my-domain,dc=com"
New password:
Re-enter new password:
Enter LDAP Password:
Result: Success (0)
You have now deleted a local user, added a new LDAP user using an LDIF file, and have set
the new LDAP user’s password.
You should now have an OpenLDAP server installed, configured, and populated with users
and groups.
11.2.4 Configuring an LDAP client
You are now ready to configure a system to authenticate users using the new LDAP server.
You first go to a different virtual server, running under the LINUX01 user ID, and configure it
to point to this LDAP server. Perform the following steps:
1. Start an SSH session to the Linux running under LINUX01.
Seitenansicht 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare