2014-07-15 12:44:56, INFO , operations.UserAuthenticator, {6o} successful ssl authentication for cn=utentetest2,ou=People,dc=mydomain,dc=org (7ms)
2014-07-15 12:44:56, ERROR, util.Helper, {6o} error adding objectclass 'pwmUser' to user cn=utentetest2,ou=People,dc=mydomain,dc=org: com.novell.ldapchai.exception.ChaiOperationException: [LDAP: error code 21 - objectClass: value #0 invalid per syntax]
2014-07-15 12:44:56, INFO , event.AuditManager, audit event: {"eventCode":"AUTHENTICATE","perpetratorID":"utentetest2","perpetratorDN":"cn\u003dutentetest2,ou\u003dPeople,dc\u003dmydomain,dc\u003dorg","timestamp":"Jul 15, 2014 12:44:56 PM","message":"AUTHENTICATED","targetID":"utentetest2","targetDN":"cn\u003dutentetest2,ou\u003dPeople,dc\u003dmydomain,dc\u003dorg","sourceAddress":"xx.xx.xx.xx","sourceHost":"myhost"}
2014-07-15 12:44:56, ERROR, event.UserLdapHistory, ldap error writing user event log: [LDAP: error code 65 - attribute 'pwmEventLog' not allowed]
echo include /etc/ldap/schema/pwm.schema > /var/tmp/schema_convert.conf
WeI then edited the generated file (/var/tmp/ldif_output/cn\=config/cn\=schema/cn\=\{0\}pwm.ldif), editing the dn and cn lines, and removing the dynamic attributes at the end.mkdir /var/tmp/ldif_output
slaptest -f /var/tmp/schema_convert.conf -F /var/tmp/ldif_output
dn: cn=pwm,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: pwm
olcAttributeTypes: {0}( 1.3.6.1.4.1.591242.2.2010.04.16.1 NAME 'pwmEventLog' S
YNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
olcAttributeTypes: {1}( 1.3.6.1.4.1.591242.2.2010.04.16.2 NAME 'pwmResponseSet
' SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
olcAttributeTypes: {2}( 1.3.6.1.4.1.591242.2.2010.04.16.3 NAME 'pwmLastPwdUpda
te' SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
olcAttributeTypes: {3}( 1.3.6.1.4.1.591242.2.2010.04.16.4 NAME 'pwmGUID' SYNTA
X 1.3.6.1.4.1.1466.115.121.1.15 )
olcObjectClasses: {0}( 1.3.6.1.4.1.591242.1.2010.04.16.1 NAME 'pwmUser' AUXILI
ARY MAY ( pwmLastPwdUpdate $ pwmEventLog $ pwmResponseSet $ pwmGUID ) )
ldapadd -c -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/pwm.ldif
It seems to work now, I hope this is a "legitimate" way to create the schema, and I hope the doc gets fixed too. ;)
ciao,
Silvio
attributetype (
1.3.6.1.4.1.591242.2.2010.04.16.1
NAME 'pwmEventLog'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
So the corresponding LDIF file will be: