Specifying the schema files in the include section of the slapd configuration file (slapd.conf) ensures that the slapd process (the LDAP Directory Server daemon) reads the additional configuration information. The included files must follow the correct slapd configuration file format.
To specify the schema files
Specifies the Policy Server installation path.
.... ..... include /usr/local/etc/openldap/schema/openldap_attribute.schema include /usr/local/etc/openldap/schema/openldap_object.schema include /usr/local/etc/openldap/schema/openldap_attribute_XPS.schema include /usr/local/etc/openldap/schema/openldap_object_XPS.schema
Note: This procedure assumes that the OpenLDAP server is located at /usr/local/etc/openldap and that the schema files are located in the schema subdirectory.
The policy store schema is created for r12.0 SP3.
Specify indexing in the slapd.conf file to use OpenLDAP as a policy store.
Follow these steps:
# Indices to maintain index objectClass eq
index smAdminOID4 pres,eq index smAuthDirOID4 pres,eq index smAzDirOID4 pres,eq index smcertmapOID4 pres,eq index smIsRadius4 pres,eq index smIsAffiliate4 pres,eq index smParentRealmOID4 pres,eq index smPasswordPolicyOID4 pres,eq index smAgentGroupOID4 pres,eq index smKeyManagementOID4 pres,eq index smAgentOID4 pres,eq index smAgentKeyOID4 pres,eq index smRootConfigOID4 pres,eq index smAGAgents4 pres,eq index smDomainAdminOIDs4 pres,eq index smDomainOID4 pres,eq index smvariableoid5 pres,eq index smNestedVariableOIDs5 pres,eq index smvariabletypeoid5 pres,eq index smActiveExprOID5 pres,eq index smDomainUDs4 pres,eq index smVariableOIDs5 pres,eq index smusractiveexproid5 pres,eq index smPropertyOID5 pres,eq index smPropertySectionOID5 pres,eq index smPropertyCollectionOID5 pres,eq index smFilterClass4 pres,eq index smTaggedStringOID5 pres,eq index smNoMatch5 pres,eq index smTrustedHostOID5 pres,eq index smIs4xTrustedHost5 pres,eq index smDomainMode5 pres,eq # index smImsEnvironmentOIDs5 pres,eq index smSecretRolloverEnabled6 pres,eq index smSecretGenTime6 pres,eq index smSecretUsedTime6 pres,eq index smSharedSecretPolicyOID6 pres,eq index smFilterPath4 pres,eq index smPolicyLinkOID4 pres,eq index smIPAddress4 pres,eq index smRealmOID4 pres,eq index smSelfRegOID4 pres,eq index smAzUserDirOID4 pres,eq index smResourceType4 pres,eq index smResponseAttrOID4 pres,eq index smResponseGroupOID4 pres,eq index smResponseOID4 pres,eq index smRGResponses4 pres,eq index smRGRules4 pres,eq index smRuleGroupOID4 pres,eq index smRuleOID4 pres,eq index smSchemeOID4 pres,eq index smisTemplate4 pres,eq index smisUsedbyAdmin4 pres,eq index smSchemeType4 pres,eq index smUserDirectoryOID4 pres,eq index smODBCQueryOID4 pres,eq index smUserPolicyOID4 pres,eq index smAgentTypeAttrOID4 pres,eq index smAgentTypeOID4 pres,eq index smAgentTyperfcid4 pres,eq index smAgentTypeType4 pres,eq index smAgentCommandOID4 pres,eq index smTimeStamp4 pres,eq index smServerCommandOID4 pres,eq index smAuthAzMapOID4 pres,eq index xpsParameter pres,eq index xpsValue pres,eq index xpsNumber pres,eq index xpsCategory pres,eq index xpsGUID pres,eq index xpsSortKey pres,eq index xpsIndexedObject pres,eq
slapindex -f slapd.conf
The policy store indexing for OpenLDAP is specified.
Enabling user authentication ensures that you can protect resources with a supported authentication scheme.
To enable user authentication, add the following to the slapd configuration file:
access to attrs=userpassword by self write by anonymous auth by * none
The slapd configuration file requires values for additional database directives.
To specify the directives, edit the following:
Specify any supported backend type.
Example: bdb
Specify the database suffix.
Example: dc=example,dc=com
Specify the DN of root.
Example: cn=Manager,dc=example,dc=com
Specify the password to root.
Specify the path of the database directory.
Example: /usr/local/var/openldap-data
Note: The database directory must exist prior to running slapd and should only be accessible to the slapd process.
OpenLDAP is the only supported LDAP directory that does not support server-side sorting. Instead, OpenLDAP requires that all sorting be performed on the client side. To accomplish this, all XPS objects are retrieved at start-up using server-side paging.
To support client-side sorting, the OpenLDAP directory administrator must configure the following settings in the slapd.conf file:
This setting allows the XPS client to read the OpenLDAP directory's type and capabilities.
This setting accommodates XPS objects which are retrieved in increments of 500 by server-side paging.
This setting allows smconsole to test the LDAP connection using a simple V2 bind.
To support client-side sorting
access to * by users read by anonymous read access to dn.base=ACL by users read
Specifies an access control list or list of permissions.
Note: For more information on how to specify the ACL, see http://www.openldap.org/doc/admin24/access-control.html.
sizelimit 500
Note: The default sizelimit value is 500. For more information, see http://www.openldap.org/doc/admin24/slapdconfig.html.
allow bind_v2
The slapd.conf file is configured to support client-side sorting.
Testing the configuration file ensures that it is correctly formatted.
To test the configuration file
./slapd
Note: Unless you specified a debugging level, including level 0, slapd automatically forks, detaches itself from its controlling terminal, and runs in the background.
./slapd -Tt
The slapd configuration file is tested.
Restarting the OpenLDAP directory server loads the SiteMinder schema. The Policy Server requires that the SiteMinder schema is loaded before you can use the directory server as a policy store.
To restart the directory server
kill -INT 'cat path_of_var/run_directory/slapd.pid`
Specifies the path of the database directory.
Example: kill -INT `cat /usr/local/var/run/slapd.pid`
./slapd
The following process lists the steps for creating the directory server database for the policy store:
Copyright © 2012 CA.
All rights reserved.
|
|