Owen O' Shaughnessy writes:
I have imported the supplied authldap.ldif schema that is in the build environment, and have imported it into the ldap base, and can see it in the correct place:courier@mta:/etc/ldap/slapd.d/cn=config/cn=schema# ls cn={0}core.ldif cn={1}cosine.ldif cn={2}nis.ldif cn={3}inetorgperson.ldif cn={4}courier.ldif I then try to add a user to the configured directory, so I create a ldif file like: dn: uid=o...@shaugh.com,ou=Users,dc=province,dc=com objectClass: top objectClass: inetorgperson objectClass: courier uid: o...@shaugh.com o: shaugh.com ou: d100 mailbox: Maildir quota: 51200 clearPassword: password userPassword: {SHA}dfsfljdslfjlkjlk;;k;lkpowiwqlkewqlwq= disableimap: 0 disablepop3: 0 disablewebmail: 0 sharedgroup: public mailhost: 127.0.0.1 mail: yes homeDirectory: mailspool/o...@shaugh.com sn: OShaughnessy givenName: Owen cn:Owen OShaughnessy uidNumber: 501 gidNumber: 500 Which I try and import with: ldapadd -x -D cn=Manager,dc=shaugh,dc=com -w password -f owen.ldif But I get ldap_add: Invalid syntax (21) additional info: objectClass: value #2 invalid per syntax Which means that my objectClass: courier line is wrong, either I am referencing the schema wrong, or I haven't
If you've imported authldap.schema, you should be specifying a CourierMailAccount objectClass, because that's what authldap.schema defines.
pgpeXa44YhnP4.pgp
Description: PGP signature
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users