[courier-users] Authldap configuration

2013-01-28 Thread Owen O' Shaughnessy
Hi Guys,

Hoping someone here has done this before.

I have built authlib with openldap support, and have spent 3 days
finding bugs in the openldap documentation which have prevented me in
configuring it.

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
it imported into the correct scope. When i try to import it into the
directory tree the same was as I setup the directory structure, I get
insufficient access (50) which leads me to believe thats not the thing
to be doing.

Anybody got any idea where I'm going wrong with this? I'd really
appreciate your help, my head is a bit melted after spending so long
working with the buggy openldap documentation to get the directory
setup.

Thanks,

Owen.

--
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


Re: [courier-users] Authldap configuration

2013-01-28 Thread Sam Varshavchik

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


Re: [courier-users] Authldap configuration

2013-01-28 Thread Owen O' Shaughnessy
On Tue, Jan 29, 2013 at 3:32 AM, Sam Varshavchik mr...@courier-mta.com wrote:
 If you've imported authldap.schema, you should be specifying a
 CourierMailAccount objectClass, because that's what authldap.schema defines.


Thanks Sam, thats it.

The authldap.schema, like previous versions, has a definition for
mailhost but the authldap.ldif doesn't have a definition for it. Is
this not needed anymore or is it an omission from the ldif file?

Owen.

--
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


Re: [courier-users] Authldap configuration

2013-01-28 Thread Sam Varshavchik

Owen O' Shaughnessy writes:

On Tue, Jan 29, 2013 at 3:32 AM, Sam Varshavchik mr...@courier-mta.com  
wrote:

 If you've imported authldap.schema, you should be specifying a
 CourierMailAccount objectClass, because that's what authldap.schema  
defines.



Thanks Sam, thats it.

The authldap.schema, like previous versions, has a definition for
mailhost but the authldap.ldif doesn't have a definition for it. Is
this not needed anymore or is it an omission from the ldif file?


No, the current authldap.schema has it commented out, too.

I think that mailhost is now defined in some other schema.




pgpZ6ZIrBWm3d.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