Name Date Size

.. 2014-05-10 12:53:32 16

README_Issue543 2014-05-10 12:53:32 2.4 KiB

README_Issue543

# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
# or http://forgerock.org/license/CDDLv1.0.html.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at legal-notices/CDDLv1_0.txt.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information:
# Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2008 Sun Microsystems, Inc.
#
Manual test for Issue 543, Account Expiration Support
1. Unzip and start OpenDS.
2. Add some entries (shared/data/security/manual_tests/security_startup.ldif).
Note there is a user, uid=auser,ou=People,o=Security Tests,dc=example,dc=com
which will search the entry, uid=scarter, ou=People, o=Security Tests, dc=example,dc=com.
3. The user, uid=auser, searches entry, uid=scarter. Successful.
bash-3.00# /tmp/mikek/OpenDS-0.9.0-build004/bin/ldapsearch -T -h auseng013 -p 389 -D "uid=auser,ou=People,o=Security Tests,dc=example,dc=com" -w SecurityRules -b "uid=scarter,ou=People,o=Security Tests,dc=example,dc=com" "(objectclass=*)" uid
dn: uid=scarter,ou=People,o=Security Tests,dc=example,dc=com
uid: scarter
4. Get the current date and time. On Solaris, use the command, "date". Modify the ldif file, shared/data/security/manual_tests/admin_account_expiration.ldif, for about 5 minutes ahead of the current time.
5. Directory Manager adds the contents of shared/data/security/manual_tests/admin_account_expiration.ldif
to OpenDS. This makes the user account for uid=auser expire in about 5 minutes.
6. Repeat step 3. Before the expiration time, the search should be successful.
After the expiration time, the following error should be obtained......
bash-3.00# /tmp/mikek/OpenDS-0.9.0-build004/bin/ldapsearch -T -h auseng013 -p 389 -D "uid=auser,ou=People,o=Security Tests,dc=example,dc=com" -w SecurityRules -b "uid=scarter,ou=People,o=Security Tests,dc=example,dc=com" "(objectclass=*)" uid
The simple bind attempt failed
Result Code: 49 (Invalid Credentials)