Sun Directory Services 3.1 User's Guide

Standard LDAP Parameters

In this section of the Deja.properties file you can:

Hiding Attributes


STANDARD_ATTRIBUTES_CRYPTED

In the view, modify and create windows of Deja, some attribute values are replaced by a localized text string. Specify the attributes you want to be hidden by adding their names to the STANDARD_ATTRIBUTES_CRYPTED list. Attribute names are separated by commas. By default the values for radiusppppasswd, radiusloginpasswd, chappassword, radiusslippasswd, userpassword are hidden.


Example A-2 Standard Encrypted Attributes

#
# Standard Add/Modify/View
#
STANDARD_ATTRIBUTES_CRYPTED=radiusppppasswd, radiusloginpasswd, chappassword,
radiusslippasswd, userpassword 

Login Parameters


STANDARD_LOGIN_SEARCH_FILTER

The search feature of the login panel operates using the filter defined with this label. By default it is (|(cn=*{0}*)(uid=*{0}*)). This is defined as either cn or uid contains the search string typed by the user in the search text field.


STANDARD_LOGIN_MAX_SEARCH_RESULT

Specifies the maximum number of search results per naming context returned by a login search. The default value is 55.


STANDARD_LOGIN_ALIASES

Defines standard login aliases for Deja. To add an alias, remove the # from the start of the line and see "Adding a Login Alias" for information. The syntax is:


STANDARD_LOGIN_ALIASES= alias; DN; alias; DN; ...

Adding a Login Alias

For example, if the user cn=Robert Travis, ou=sales,o=xyz,c=us wants to login frequently, instead of typing the DN of the user, you can create an alias for him called, for instance, rob. To create the alias:

    Remove the # from the start of the line and add the alias name and the DN for the entry to the STANDARD_LOGIN_ALIASES definition:


STANDARD_LOGIN_ALIASES= rob; cn=Robert Travis,ou=sales,o=xyz,c=us

When Deja is restarted the alias is available in the Login panel.


Example A-3 Login Parameters

#
# Standard Login
#
STANDARD_LOGIN_SEARCH_FILTER= (|(cn=*{0}*)(uid=*{0}*))
STANDARD_LOGIN_MAX_SEARCH_RESULT= 55
# STANDARD_LOGIN_ALIASES= UserA_alias; userA_dn; UserB_alias; UserB_dn

Standard Search Parameters

To add a standard search to Deja, define it in the Standard Search section of the Deja.properties file. Each type of search is declared in the STANDARD_SEARCH_FILTERS definition. Each search is then defined on a separate line. A search definition consists of the search name (for example, STANDARD_SEARCH_FILTER_PERSON), the label that appears in the Search Type option button (for example, STANDARD_SEARCH_FILTER_PERSON_IDENTIFIER), and the search definition (for example, (&(objectclass=person)(cn=*{0}*)) ).


STANDARD_SEARCH_TABLE_LABELS

Contains a list of the attributes and header labels for the search results table. By default the cn, telephoneNumber and mail attributes are listed.


Example A-4 Standard Search Parameters

#
# Standard Search
#
STANDARD_SEARCH_FILTERS= STANDARD_SEARCH_FILTER_PERSON,
STANDARD_SEARCH_FILTER_LOCALITY, STANDARD_SEARCH_FILTER_ORGANIZATION,
STANDARD_SEARCH_FILTER_WILDCARD
STANDARD_SEARCH_FILTER_PERSON= STANDARD_SEARCH_FILTER_PERSON_IDENTIFIER,
(&(objectclass=person)(cn=*{0}*))
STANDARD_SEARCH_FILTER_LOCALITY= STANDARD_SEARCH_FILTER_LOCALITY_IDENTIFIER,
(l=*{0}*)
STANDARD_SEARCH_FILTER_ORGANIZATION=
STANDARD_SEARCH_FILTER_ORGANIZATION_IDENTIFIER, (|(o=*{0}*)(ou=*{0}*))
STANDARD_SEARCH_FILTER_WILDCARD= STANDARD_SEARCH_FILTER_WILDCARD_IDENTIFIER,
{0}
STANDARD_SEARCH_TABLE_LABELS= cn; STANDARD_SEARCH_TABLE_NAME_LABEL,
telephoneNumber; STANDARD_SEARCH_TABLE_PHONE_LABEL, mail;
STANDARD_SEARCH_TABLE_MAIL_LABEL

Adding a New Standard Search

To add a standard search for the uid attribute.

  1. Declare the search definition in the STANDARD_SEARCH_FILTERS line:


    STANDARD_SEARCH_FILTERS= STANDARD_SEARCH_FILTER_PERSON,
    STANDARD_SEARCH_FILTER_LOCALITY,
    STANDARD_SEARCH_FILTER_ORGANIZATION,
    STANDARD_SEARCH_FILTER_WILDCARD, NEW_SEARCH_FILTER_UID

    The label for the new search is NEW_SEARCH_FILTER_UID.

  2. Define the search:


    NEW_SEARCH_FILTER_UID= User ID, (&(objectclass=*)(uid=*{0}*))

    The label to appear in the Search Type option button is User ID, and Deja searches for entries containing the specified value for the attribute uid.

  3. Add additional search results table labels:


    STANDARD_SEARCH_TABLE_LABELS= cn;
    STANDARD_SEARCH_TABLE_NAME_LABEL, telephoneNumber;
    STANDARD_SEARCH_TABLE_PHONE_LABEL, mail;
    STANDARD_SEARCH_TABLE_MAIL_LABEL, uid;User ID

    User ID is added to the search results table headings.

  4. Close Deja and restart it.

    You search type is added to the Standard Search panel.

Standard Create Parameters

When you paste an entry to the Create panel (see "Pasting an Entry to the Create Panel"), the paste works in one of two ways:


STANDARD_CREATE_PASTE_CLEAR_DATA

Specifies the type of paste. true indicates that data is cleared from the entry before pasting. By default this is set to false.


STANDARD_CREATE_ALTERNATIVE_NAMING_ATTRIBUTES

If the naming attributes cannot be retrieved from the schema for the Standard Create panel, the list of available naming attributes is taken from this definition. By default the naming attributes are cn, o, ou, l, c, and dc.


Example A-5 Standard Create Parameters

# 
# Standard Create 
# 
STANDARD_CREATE_PASTE_CLEAR_DATA=FALSE 
#STANDARD_CREATE_PASTE_CLEAR_DATA=TRUE 
# 
# Alternate way to specify naming attributes if cannot be retrieved from schema
STANDARD_CREATE_ALTERNATIVE_NAMING_ATTRIBUTES=cn; o; ou; l; c; dc