[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Regex access problem in slapd.conf



fre, 2003-01-03 kl. 11:32 skrev Paul Wilson:

I'm sure many others will reply, but as far as I can see from slapd.conf
and the debug output, you are trying to equate uid with cn. They aren't
the same.

The regex stuff works perfectly for me with 2.1.5 to 2.1.10, but it is
advisable to be consequent ...

Best,

Tony
--

> access to * by dn="uid=(.*),ou=Users,o=ORG,c=US"
> group="cn=$1,ou=Users,o=ORG,c=US" write by
> dn="uid=Manager,ou=Users,o=ORG,c=US" write by anonymous auth
> 
> The problem that I am having is that the $1 variable is not being
> populated.  As I understand regular expressions, the (.*) should match on
> any pattern.
> 
> Here is a chunk of the debug at level 7:
> 
> => regex_matches: string:        uid=memphis@org,ou=users,o=org,c=us
> => regex_matches: rc: 1 no matches
> => string_expand: pattern:  uid=(.*),ou=Users,o=ORG,c=US
> => string_expand: expanded: uid=(.*),ou=Users,o=ORG,c=US
> => regex_matches: string:        uid=memphis@org,ou=users,o=org,c=us
> => regex_matches: rc: 0 matches
> => string_expand: pattern:  cn=$1,ou=Users,o=ORG,c=US
> => string_expand: expanded: cn=,ou=Users,o=ORG,c=US
> >>> dnNormalize: <cn=,ou=Users,o=org,c=US>

-- 

Tony Earnshaw

When all's said and done ...
there's nothing left to say or do.

e-post:		tonni@billy.demon.nl
www:		http://www.billy.demon.nl