08.01.2013 Views

AIX and Linux Interoperability - IBM Redbooks

AIX and Linux Interoperability - IBM Redbooks

AIX and Linux Interoperability - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Loadable authentication modules are configured in /usr/lib/security/methods.cfg.<br />

For example, the following stanzas describe one identification <strong>and</strong> authentication<br />

method:<br />

LDAP:<br />

program = /usr/lib/security/LDAP<br />

KRB5:<br />

program = /usr/lib/security/KRB5<br />

options = authonly<br />

KERBEROS:<br />

options = auth=KRB5,db=LDAP<br />

The KERBEROS method specifies that the user <strong>and</strong> group information is<br />

available through LDAP <strong>and</strong> the authentication mechanism is Kerberos. Use the<br />

BUILTIN reserved keyword for the db option to refer to /etc/passwd <strong>and</strong> the<br />

/etc/security files.<br />

The SYSTEM attribute in /etc/security/user specifies which way the user is<br />

authenticated by referencing stanzas from /usr/lib/security/methods.cfg. This<br />

implies that authentication can be controlled on a per user basis, which is a<br />

rather rare feature. To set the authentication on the host level, you should just<br />

change the SYSTEM attribute of the default stanza. Furthermore, it is possible to<br />

make quite complex authentication configurations using the SYSTEM grammar:<br />

joe:<br />

SYSTEM = ”LDAP or LDAP[unavail] <strong>and</strong> compat”<br />

This example says that joe should be authenticated using the LDAP<br />

authentication method, but in case the LDAP service is not available, he can<br />

authenticate against the local files just as well. A complete description of the<br />

SYSTEM grammar is in the /etc/security/user file reference.<br />

Another related attribute in /etc/security/user is registry, which specifies where<br />

the user’s information is administered. Thus, a complete stanza for user joe in<br />

/etc/security/user may look like this:<br />

joe:<br />

SYSTEM = KERBEROS<br />

registry = KERBEROS<br />

Note that the user administration chuser, mkuser, <strong>and</strong> rmuser comm<strong>and</strong>s may not<br />

be well suited to some user registries, depending on the site’s security policy.<br />

This is because these comm<strong>and</strong>s assume superuser privileges that may not be<br />

appropriate if users are administered on a site level.<br />

Chapter 1. Identification <strong>and</strong> authentication 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!