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

Re: LDAP stopping without apparent reason



Márcio Luciano Donada wrote:
> Michael Ströder escreveu:
> 
>> overlay ppolicy
>> ppolicy_default "cn=default,ou=policies,dc=example,dc=com"
>>
>>>        objectClass: pwdPolicy
>>>        objectClass: person
>>>        objectClass: top
>>> [..]
>>> ldap_add: Invalid syntax (21)
>>>         additional info: objectClass: value #0 invalid per syntax
> 
> 
> in the slapd.conf:
> 
> moduleload      ppolicy
> suffix          "dc=xxxxxxx,dc=com,dc=br"
> rootdn          "cn=suporte,dc=xxxxxxxxx,dc=com,dc=br"
> rootpw          secret
> overlay         ppolicy
> ppolicy_default "cn=default,ou=Policies,dc=xxxxxxxx,dc=com,dc=br"
> 
> 
> But, on restart slapd process on the message of error:
> 
> # /etc/init.d/slapd restart
> Stopping OpenLDAP: slapd.
> Starting OpenLDAP: slapd - failed:
> User Schema load failed for attribute "pwdAttribute". Error code 17:
> attribute type undefined

Sorry, I was wrong. slapo-ppolicy does not define the subschema stuff. You
have to include schema file /etc/ldap/schema/ppolicy.schema.

Ciao, Michael.