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

Re: slapd-{ldap,meta} && authentication

Quoting "Pierangelo Masarati" <ando@sys-net.it>:

> > But for now, I'll stick with back-meta. I can now do simple binds, but not
> I suggest you stay with back-ldap if you don't need back meta, and boost
> up the logs to see what happens with your authz-regexp.  Also, a knowledge
> of your authz-policy and authzFrom/authzTo design would be helpful. 

I've read some about this both on the list and in the man pages, but 'decided'
that I didn't want/need it... The reason for this is that I don't want to
have ANY passwords or anything in a config file on disk. That was the MAIN
(almost the ONLY) reason why I ended up with LDAPv3 (Kerberos V + LDAP).

You talk about 'authz-regexp'. Is that the same thing as 'sasl-regexp', or
is there such a thing that I've missed in the man pages (or isn't there)?

Also, I've been thinking about how I could use 'saslAuth{To,From}' in
my setup. It seems more directed to 'authentication on behalf of someone
else' which I'm not trying to do...

My sasl-regexp's are in the thread, but here it is again non the less:

----- s n i p -----
# Regexp for SASL authentication:
# Regexp  for SSL cert authentication:
----- s n i p -----

Quoting "Pierangelo Masarati" <ando@sys-net.it>:

> I would really appreciate if you (or anybody else) could give it
> a try and help check/improve the support for other SASL mechs;
> it is very unlikely that I'll have a working GSSAPI set up in a
> reasonable time with my current resources, and this could limit
> the availability of this feature in the next release.

Fair enough. I'll give it a go 'later', but first I must understand
how the CURRENT system works and how I can circumvent any problems
I find...

> The proxy needs to bind to the remote server with a trusted
> identity that can read the credentials, and this administrative
> bind can be done via SASL as well.

Ah, there it is again...

Running both the proxy and the master with '-d -1', I draw the conclution
that anonymous read access to the 'krb5PrincipalName' (which is used in
the sasl-regexp to find the DN) isn't allowed. I only have AUTH access to
it, not READ.

This works fine on the master (or slapd with local DB) since that is trying
to AUTH with it while the proxy is trying to SEARCH with it (_before_ it
tries to AUTH I presume)...

I've been thinking about a ACI/ACL that can circumvent this (SEARCH access
from the proxy for example) but none is something that I want or will work
in the long run.

Another idea (the 'official' one if I read this thread and the man pages
correctly) is to use a special DN/pw combo that have READ/SEARCH access
to this (krb5PrincipalName) attribute. But that will still require a
password in slapd.conf. No biggie perhaps, since ACI/ACLs can be written
to _limit_ (really limit! :) what it can do/read. But still. I don't like
the idea....