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

Re: Does "Users" in acl only goes for simple binds and not with sasl/gssapi?



-- "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:

> Your description here implies that slapd(8) is
> logging some sort of error due to a bad DN in
> slapd.conf(5).   But if that was so, you'd
> never get as far as:
> 
> >I get this:
> >
> >ldap_sasl_interactive_bind_s: No such object (32)
> 
> 

My config looks like this:

sasl-host   gaheris.camlann.pregi.net
sasl-realm CAMLANN.PREGI.NET
sasl-regexp
      uid=(.*),cn=camlann.pregi.net,cn=gssapi,cn=auth
      uid=$1,ou=staff,dc=preginet


My access list is simple:

access to * by users read

That is, to allow everyone who have authenticated.

And as you've said...

> As far as your question regarding "users",
> slapd-access(5)
> says:
>    The keyword users means access is granted to
>    authenticated clients.

so, when I'm using sasl/gssapi for authentication, it
goes without saying that I'm already authenticated,
right? How come when I do:

ldapsearch -b 'ou=staff,dc=preginet" mail

I got these:

ldap_sasl_interactive_bind_s: No such object (32)


My debug.log contains these lines:

     PRESENT
Jul  1 13:24:57 gaheris slapd[1267]: =>
access_allowed: search access to "" "objectClass"
requested
Jul  1 13:24:57 gaheris slapd[1267]: => acl_get: [1]
attr objectClass
Jul  1 13:24:57 gaheris slapd[1267]: => acl_mask:
access to entry "", attr "objectClass" requested
Jul  1 13:24:57 gaheris slapd[1267]: => acl_mask: to
all values by "", (=n)
Jul  1 13:24:57 gaheris slapd[1267]: <= check
a_dn_pat: users
Jul  1 13:24:57 gaheris slapd[1267]: <= acl_mask: no
more <who> clauses, returning =n (stop)
Jul  1 13:24:57 gaheris slapd[1267]: =>
access_allowed: search access denied by =n

What's with that "no more <who> clauses"??

If I were to change my access list above to:

access to * by * read

and do the same search again, I got these results:

SASL/GSSAPI authentication started
SASL username: matato@CAMLANN.PREGI.NET
SASL SSF: 56
SASL installing layers
dn: ou=staff,dc=preginet

dn: uid=matato,ou=staff,dc=preginet
mail: jayson@asti.dost.gov.ph

I can't see what makes this thing too difficult for
me. I almost thought configuration of kerberos server
is the hardest part, yet I ended up being too dumb
because of this access controls, that is.. I still
haven't even played with regexp yet.


-Jay









__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com