README_Issue543 revision d81978a0815d5b8a75633c35e3e1f8708d36f017
# 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
# trunk/opends/resource/legal-notices/OpenDS.LICENSE
# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
# 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
# trunk/opends/resource/legal-notices/OpenDS.LICENSE. 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)