Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Guide

- Previous: To set the default realm
- Next: Creating the solaris Realm

#### Example

For example, suppose an LDAP user, Joe Java, is defined in the LDAP directory as follows:

    uid=jjava,ou=People,dc=acme,dc=com
    uid=jjava
    givenName=joe
    objectClass=top
    objectClass=person
    objectClass=organizationalPerson
    objectClass=inetorgperson
    sn=java
    cn=Joe Java

Using the example code, when creating or editing the `ldap` realm, you can enter the values as shown in the following table.

Table 9–4 Example `ldap` realm values

Property Name | Property Value
--- | ---
`directory` | LDAP URL to your server, for example: `ldap://ldap.acme.com:389`
`base-dn` | `ou=People,dc=acme,dc=com`. Can be rooted higher, for example `dc=acme`, `dc=com`, but searches would traverse a larger part of the tree, reducing performance.
`jaas-context` | `ldapRealm`

- Previous: To set the default realm
- Next: Creating the solaris Realm

- © 2010, Oracle Corporation and/or its affiliates