Markus Krause wrote:
Hi list!
how can i allow or deny access to some attributes in a specific subtree?
thanks in advance for any hints!
You don't provide enough info to determine what's wrong. You should
provide a stack backtrace (make sure you use a slapd compiled with
debugging symbols and not stripped) and a complete (sanitized) slapd.conf.
ok, here you are:
---- cleaned slapd.conf:
[snip]
loglevel 0
TLSCipherSuite HIGH:MEDIUM:+SSLv2
TLSCertificateFile /etc/ssl/servercerts/servercert.pem
TLSCertificateKeyFile /etc/ssl/servercerts/serverkey.pem
TLSCACertificateFile /etc/ssl/mpibc-w2k_root-ca.pem
database bdb
suffix "dc=biochem,dc=mpg,dc=de"
rootdn "cn=Manager,dc=biochem,dc=mpg,dc=de"
rootpw "{ssha}XXXX"
overlay smbk5pwd
smbk5pwd-enable samba
The directives below appear __after__ an overlay instantiation, while
they belong to the database. Intermixing database and overlay
directive is known to lead to undefined results (a crash is just a
clear sign of error, but what basically happens is that overlay parsing
code mucks with database private memory and vice versa). Pease re-sort
your configuration to clearly confine each database directive right
after the database instantiation, and each overlay's directive right
after that overlay instantiation and before any subsequent overlay
instantiation. This should fix your problem.
p.
directory /var/lib/ldap/
checkpoint 1024 5
cachesize 10000
index objectClass,uidNumber,gidNumber eq
index member,mail eq,pres
index cn,displayname,uid,sn,givenname sub,eq,pres
index sambaSID,sambaPrimaryGroupSID,sambaDomainName eq
index entryCSN,entryUUID eq
index dhcpHWAddress eq,pres
index relativeDomainName eq,pres
index ipHostNumber eq,pres
index zoneName eq,pres
index radiusGroupName eq,pres
index description eq,sub,pres
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100
---- end of slapd.conf
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---------------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Email: pierangelo.masarati@sys-net.it
---------------------------------------