acl + reg exp

i don't kow how works reg exp with autenticate staments and autorization stamentes

if i want to grant acces to all connectios only 222 port, but denied alll diferents, 縤s correct this acl?

acl "connect://.*:*";

autenticate (<1>){

database= "default";

method="basic";

};

deny absolute (all) $2 != "222"

<1> = i don't know wath i put there :(

縤ts equal to ?

acl "connect://.*:222";

autenticate (<1>){

database= "default";

method="basic";

};

deny absolute (all)

allow (all) user="toto"

thanks!!

Mensaje editado por:

maximatt

Mensaje editado por:

maximatt

[708 byte] By [maximatt] at [2007-11-26 10:29:01]
# 1
If you are looking to deny requests to all CONNECT requests except to the port 222 then it is simpler to do it in the obj.conf.Take a look at the <Object ppath="connect://.*:443"> object.
rahulnair at 2007-7-7 2:34:29 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
no exactly in thats moment (later yes), i'm trying to know how works this regular expresions, 縯he expresions are like perl expresions?縣ow i can use the "matchs" expresions in aci's? Thanks
maximatt at 2007-7-7 2:34:29 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
No, the acl expressions are not regexp's, they are not even full glob expressions. So the use of expressions like $1 ... are not valid.See this post for a better explanation of the acls. http://blogs.sun.com/meena/entry/access_control_in_sun_java
rahulnair at 2007-7-7 2:34:29 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
縲hy? :(ok thanks :)
maximatt at 2007-7-7 2:34:29 > top of Java-index,Web & Directory Servers,Web Servers...