[Date Prev][Date Next]
dnattr in access clause doesn't work (ITS#2572)
Full_Name: Alexandre Tsu
Submission from: (NULL) (184.108.40.206)
the dnattr would never be processed when we give a access as :
access to dn.base="o=org,dc=example,dc=com"
where "cn=guest,ou=Users,o=org,dc=example,dc=com" contained in "cn=Guests".
I do a search in acl.c aclparse.c and slap.h, structure Access's member
a_dn_at indicated to contain dnattr property, acl_mask() will process it.
the access_allowed() will call acl_mask(). But, the problem is , at line
275, following directives
while((a = acl_get( a, &count, be, op, e, desc,MAXREMATCHES, matches )) !=
]] are immediately skipped.then acl_mask() is samely skipped.
acl_get()return always NULL when dn is specified ("cn=Guests, ou=UserGroups,
o=org, dc=example, dc=com"), which is not the same as binded dn
at line 449, [[if ( dnlen != patlen ) continue;]] breaks the cycle and
Is this a logic problem?! I wonder how could I use dnattr if this is not a
thank you very much.