/* The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the License). You may not use this file except in
 * compliance with the License.
 *
 * You can obtain a copy of the License at
 * https://opensso.dev.java.net/public/CDDLv1.0.html or
 * opensso/legal/CDDLv1.0.txt
 * See the License for the specific language governing
 * permission and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * Header Notice in each file and include the License file
 * at opensso/legal/CDDLv1.0.txt.
 * If applicable, add the following below the CDDL Header,
 * with the fields enclosed by brackets [] replaced by
 * your own identifying information:
 * "Portions Copyrighted [year] [name of copyright owner]"
 *
 * $Id: policyevaluationtest_ipcondition.properties,v 1.2 2008/10/06 01:16:40 inthanga Exp $ 
 *
 * Copyright 2007 Sun Microsystems Inc. All Rights Reserved
 */

testcount=9
policycount=3
test0.Identity.realmname=/
test0.Identity.username=ipuser0
test0.Identity.password=ipuser0
test0.Identity.type=user
test0.Identity.attributecount=0
test0.desc= valid exact IP address -- user should be allowed
test0.resourcename=http://www.yahooIP0.com:80/index.html
test0.requestip=192.18.178.74
test0.authscheme=ldap
test0.action=GET
test0.result=true
test1.Identity.realmname=/
test1.Identity.username=ipuser0
test1.Identity.password=ipuser0
test1.Identity.type=user
test1.Identity.attributecount=2
test1.Identity.attribute1.name=sn
test1.Identity.attribute1.value=mysname of ipuser0
test1.Identity.attribute0.name=cn
test1.Identity.attribute0.value=mycname of ipuser0
test1.desc= invalid ip address --should be denied
test1.resourcename=http://www.yahooIP0.com:80/public
test1.requestip=192.18.178.90
test1.authscheme=ldap
test1.action=GET
test1.result=false
test2.Identity.realmname=/
test2.Identity.username=ipuser1
test2.Identity.password=ipuser1
test2.Identity.type=user
test2.Identity.attributecount=0
test2.desc = valid IP address within range -- should be allowed
test2.resourcename=http://www.yahooIP1.com:80/public
test2.authscheme=ldap
test2.requestip=192.18.178.89
test2.action=GET
test2.result=true
test3.Identity.realmname=/
test3.Identity.username=ipuser1
test3.Identity.password=ipuser1
test3.Identity.type=user
test3.Identity.attributecount=2
test3.Identity.attribute1.name=sn
test3.Identity.attribute1.value=mysname of ipuser1
test3.Identity.attribute0.name=cn
test3.Identity.attribute0.value=mycname of ipuser1
test3.desc = valid IP address out of range -- should be denied
test3.resourcename=http://www.yahooIP1.com:80/public
test3.authscheme=ldap
test3.requestip=192.18.178.29
test3.action=GET
test3.result=false
test4.Identity.realmname=/
test4.Identity.username=ipdnsuser1
test4.Identity.password=ipdnsuser1
test4.Identity.type=user
test4.desc=both ip and dns are valid --- should be allowed
test4.Identity.attributecount=0
test4.resourcename=http://www.yahooIP2.org:80/public
test4.authscheme=ldap
test4.dnsname=yahoo.org
test4.requestip=192.18.178.89
test4.action=GET
test4.result=true
test5.Identity.realmname=/
test5.Identity.username=ipdnsuser1
test5.Identity.password=ipdnsuser1
test5.Identity.type=user
test5.Identity.attributecount=0
test5.desc= valid dns with invalid ip-- access should be allowed
test5.resourcename=http://www.yahooIP2.org:80/public
test5.authscheme=ldap
test5.dnsname=yahoo.org
test5.requestip=192.18.178.10
test5.action=GET
test5.result=true
test6.Identity.realmname=/
test6.Identity.username=ipdnsuser1
test6.Identity.password=ipdnsuser1
test6.Identity.type=user
test6.Identity.attributecount=0
test6.desc= invalid dns with valid ip-- access should be allowed
test6.resourcename=http://www.yahooIP2.org:80/public
test6.authscheme=ldap
test6.dnsname=sun.net
test6.requestip=192.18.178.89
test6.action=GET
test6.result=true
test7.Identity.realmname=/
test7.Identity.username=ipdnsuser1
test7.Identity.password=ipdnsuser1
test7.Identity.type=user
test7.Identity.attributecount=0
test7.desc= invalid dns with invalid IP-- access should be denied
test7.resourcename=http://www.yahooIP2.org:80/public
test7.authscheme=ldap
test7.dnsname=sun.net
test7.requestip=192.18.178.10
test7.action=GET
test7.result=false
test8.Identity.realmname=/
test8.Identity.username=ipdnsuser1
test8.Identity.password=ipdnsuser1
test8.Identity.type=user
test8.Identity.attributecount=0
test8.desc= invalid auth with valid IP and dns -- access should be denied
test8.resourcename=http://www.yahooIP2.org:80/public
test8.authscheme=radius
test8.dnsname=yahoo.org
test8.requestip=192.18.178.89
test8.action=GET
test8.result=false

