# 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 1269, Generate an alert when enabling/disabling access control.
1. Modify the access control handler with an ldif file with the following contents......
dn: cn=Access Control Handler,cn=config
changetype: modify
replace: ds-cfg-enabled
ds-cfg-enabled: false
The access control handler is now disabled.
2. Check the errors log for a message like the following......
[26/Jun/2007:12:22:19 -0500] category=CONFIG severity=SEVERE_WARNING msgID=3277325 msg=Access control has been disabled
[26/Jun/2007:12:22:19 -0500] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.AccessControlConfigManager (alert type org.opends.server.AccessControlDisabled, alert ID 3277325): Access control has been disabled
3. Modify the access control handler with an ldif file with the following contents......
dn: cn=Access Control Handler,cn=config
changetype: modify
replace: ds-cfg-enabled
ds-cfg-enabled: true
The access control handler is now enabled.
4. Check the errors log for a message like the following......
[26/Jun/2007:12:23:37 -0500] category=CONFIG severity=NOTICE msgID=3605006 msg=Access control has been enabled and will use the org.opends.server.authorization.dseecompat.AciProvider implementation
[26/Jun/2007:12:23:37 -0500] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.AccessControlConfigManager (alert type org.opends.server.AccessControlEnabled, alert ID 3605006): Access control has been enabled and will use the org.opends.server.authorization.dseecompat.AciProviderimplementation