Estou tentando instalar o slapd no Oracle Linux 7 e estou seguindo o Guia do administrador do Oracle® Linux para a seção da liberação 7 sobre como configurar um servidor LDAP . Quando chego ao passo 7, importando a config ldif, recebo o erro:
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "olcDatabase=hdb,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
additional info: <olcAccess> handler exited with 1
Quando executo o slapd no modo de depuração com:
/usr/sbin/slapd -u ldap -h "ldapi:/// ldap:/// ldaps:///" -d 255
Eu vejo o seguinte erro indicando que o attr shadowLastChange
é desconhecido.
58daa3a6 <<< dnPrettyNormal: <dc=ams,dc=sim,dc=mil>, <dc=ams,dc=sim,dc=mil>
58daa3a6 slapd: line 0: unknown attr "shadowLastChange" in to clause
58daa3a6 <access clause> ::= access to <what> [ by <who> [ <access> ] [ <control> ] ]+
<what> ::= * | dn[.<dnstyle>=<DN>] [filter=<filter>] [attrs=<attrspec>]
<attrspec> ::= <attrname> [val[/<matchingRule>][.<attrstyle>]=<value>] | <attrlist>
<attrlist> ::= <attr> [ , <attrlist> ]
<attr> ::= <attrname> | @<objectClass> | !<objectClass> | entry | children
<who> ::= [ * | anonymous | users | self | dn[.<dnstyle>]=<DN> ]
[ realanonymous | realusers | realself | realdn[.<dnstyle>]=<DN> ]
[dnattr=<attrname>]
[realdnattr=<attrname>]
[group[/<objectclass>[/<attrname>]][.<style>]=<group>]
[peername[.<peernamestyle>]=<peer>] [sockname[.<style>]=<name>]
[domain[.<domainstyle>]=<domain>] [sockurl[.<style>]=<url>]
[dynacl/<name>[/<options>][.<dynstyle>][=<pattern>]]
[ssf=<n>] [transport_ssf=<n>] [tls_ssf=<n>] [sasl_ssf=<n>]
<style> ::= exact | regex | base(Object)
<dnstyle> ::= base(Object) | one(level) | sub(tree) | children | exact | regex
<attrstyle> ::= exact | regex | base(Object) | one(level) | sub(tree) | children
<peernamestyle> ::= exact | regex | ip | ipv6 | path
<domainstyle> ::= exact | regex | base(Object) | sub(tree)
<access> ::= [[real]self]{<level>|<priv>}
<level> ::= none|disclose|auth|compare|search|read|{write|add|delete}|manage
<priv> ::= {=|+|-}{0|d|x|c|s|r|{w|a|z}|m}+
<control> ::= [ stop | continue | break ]
dynacl:
<name>=ACI <pattern>=<attrname>
58daa3a6 olcAccess: value #0: <olcAccess> handler exited with 1!
Se eu pegar a linha:
olcAccess: to attrs=shadowLastChange
by self write
by * read
fora, funciona, mas eu estou querendo saber se o sistema está quebrado. Quando procuro shadowLastChange
em /etc/openldap
, vejo que existe em nis.ldif
e nis.schema
.
$ grep -rn shadowLastChange /etc/openldap/
/etc/openldap/schema/nis.ldif:36:olcAttributeTypes: ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange' EQUALITY integ
/etc/openldap/schema/nis.ldif:89: $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive
/etc/openldap/schema/nis.schema:65:attributetype ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange'
/etc/openldap/schema/nis.schema:171: MAY ( userPassword $ shadowLastChange $ shadowMin $
Por que shadowLastChange
é desconhecido? O que preciso fazer para superar esse problema no caminho para configurar slapd
para poder autenticar usuários?