Re: [Dbmail] LDAP Schema
Gordan Bobic wrote: USER_OBJECTCLASS = top,account,dbmailUser Other than the fact that I can't seem to add the object class to an existing user to a class violation somewhere. :-/ then you are most likely missing a required attribute. dbmailUser *must* have both a 'uid' and a 'mail' attribute. below is the format I've used in the past. Adapt it for your needs and feed it to ldapmodify. cut dn: uid=gordan,ou=People,dc=mydomain,dc=org changetype: modify add: objectClass objectClass: dbmailUser - add: mail mail: gor...@mydomain.org cut -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
Thanks, that did the trick. I think I had misunderstood the way the mail entry works. I thought I needed an entry there like username, and then attach additional email aliases pointing to that. Serves me right for trying to do this at 1am. Thanks for clearing it up. :) Gordan On Fri, 22 May 2009 09:31:36 +0200, Paul Stevens p...@nfg.nl wrote: Gordan Bobic wrote: USER_OBJECTCLASS = top,account,dbmailUser Other than the fact that I can't seem to add the object class to an existing user to a class violation somewhere. :-/ then you are most likely missing a required attribute. dbmailUser *must* have both a 'uid' and a 'mail' attribute. below is the format I've used in the past. Adapt it for your needs and feed it to ldapmodify. cut dn: uid=gordan,ou=People,dc=mydomain,dc=org changetype: modify add: objectClass objectClass: dbmailUser - add: mail mail: gor...@mydomain.org cut ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
[Dbmail] LDAP Schema
Hi, Can anyone confirm if this is the most up to date LDAP schema that should be used with 2.2.11? http://svn.ic-s.nl/websvn/filedetails.php?repname=DBMailpath=%2Ftrunk%2Fdbmail%2Fdbmail.schemarev=1828sc=0 Thanks. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
See - http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/tree/dbmail.schema?h=dbmail_2_2 We no longer use svn. I'm not sure as to how correct this schema is, but it should be better than what that old svn version shows. -Jon Gordan Bobic wrote: Hi, Can anyone confirm if this is the most up to date LDAP schema that should be used with 2.2.11? http://svn.ic-s.nl/websvn/filedetails.php?repname=DBMailpath=%2Ftrunk%2Fdbmail%2Fdbmail.schemarev=1828sc=0 Thanks. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
OK, I got the one from the latest tar ball, thanks. Now that I tried that, I have another question - I have an existing LDAP database that is already used in production to authenticate UNIX/Windows/Samba accounts. I have gotten as far as authenticating IMAP users via the LDAP database (it seems that this doesn't require the dbmailUsers class), but lmtpd, clearly, won't work because the mailbox aliases don't exist. I added the schema to my OpenLDAP slapd.conf and I can add new dbmail users using the dbmail-users tool, but I cannot convert existing users to include the dbmailUsers objectClass. I tried adding it manually, but I get objectClass class violations, and dbmail-users -c does the same. dbmail-users -a says the user already exists. How do I add dbmailUsers objectClass to existing users to I can authenticate dbmail off the same user account? Thanks. Gordan Jonathan Feally wrote: See - http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/tree/dbmail.schema?h=dbmail_2_2 We no longer use svn. I'm not sure as to how correct this schema is, but it should be better than what that old svn version shows. -Jon Gordan Bobic wrote: Hi, Can anyone confirm if this is the most up to date LDAP schema that should be used with 2.2.11? http://svn.ic-s.nl/websvn/filedetails.php?repname=DBMailpath=%2Ftrunk%2Fdbmail%2Fdbmail.schemarev=1828sc=0 Thanks. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
I'm not a dbmail LDAP user so I can't help you much on getting your directory setup. As far as I know, you do not need to add users to the database as upon delivery or login, the account would automatically be created. Paul would know how it works better. You should have also read README.ldap from the tarball. -Jon Gordan Bobic wrote: OK, I got the one from the latest tar ball, thanks. Now that I tried that, I have another question - I have an existing LDAP database that is already used in production to authenticate UNIX/Windows/Samba accounts. I have gotten as far as authenticating IMAP users via the LDAP database (it seems that this doesn't require the dbmailUsers class), but lmtpd, clearly, won't work because the mailbox aliases don't exist. I added the schema to my OpenLDAP slapd.conf and I can add new dbmail users using the dbmail-users tool, but I cannot convert existing users to include the dbmailUsers objectClass. I tried adding it manually, but I get objectClass class violations, and dbmail-users -c does the same. dbmail-users -a says the user already exists. How do I add dbmailUsers objectClass to existing users to I can authenticate dbmail off the same user account? Thanks. Gordan Jonathan Feally wrote: See - http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/tree/dbmail.schema?h=dbmail_2_2 We no longer use svn. I'm not sure as to how correct this schema is, but it should be better than what that old svn version shows. -Jon Gordan Bobic wrote: Hi, Can anyone confirm if this is the most up to date LDAP schema that should be used with 2.2.11? http://svn.ic-s.nl/websvn/filedetails.php?repname=DBMailpath=%2Ftrunk%2Fdbmail%2Fdbmail.schemarev=1828sc=0 Thanks. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
Please read the DBMail config file's [LDAP] section. It is designed to interact with essentially arbitrary schemas, you simply tell it what the field names are it'll use them. You are encouraged to use your existing schema as much as possible. There's no need to convert your users over to dbmailUsers. You can add the dbmailUsers schema in addition to your existing user schemas in order to get the additional dbmail fields, but you can just as well re-use other fields available in your schema. Since you mention Windows users authenticating, are you working with an Active Directory server? Aaron On Thu, 21 May 2009 23:41:53 +0100, Gordan Bobic gor...@bobich.net wrote: OK, I got the one from the latest tar ball, thanks. Now that I tried that, I have another question - I have an existing LDAP database that is already used in production to authenticate UNIX/Windows/Samba accounts. I have gotten as far as authenticating IMAP users via the LDAP database (it seems that this doesn't require the dbmailUsers class), but lmtpd, clearly, won't work because the mailbox aliases don't exist. I added the schema to my OpenLDAP slapd.conf and I can add new dbmail users using the dbmail-users tool, but I cannot convert existing users to include the dbmailUsers objectClass. I tried adding it manually, but I get objectClass class violations, and dbmail-users -c does the same. dbmail-users -a says the user already exists. How do I add dbmailUsers objectClass to existing users to I can authenticate dbmail off the same user account? Thanks. Gordan Jonathan Feally wrote: See - http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/tree/dbmail.schema?h=dbmail_2_2 We no longer use svn. I'm not sure as to how correct this schema is, but it should be better than what that old svn version shows. -Jon Gordan Bobic wrote: Hi, Can anyone confirm if this is the most up to date LDAP schema that should be used with 2.2.11? http://svn.ic-s.nl/websvn/filedetails.php?repname=DBMailpath=%2Ftrunk%2Fdbmail%2Fdbmail.schemarev=1828sc=0 Thanks. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
Jonathan Feally wrote: [...] You should have also read README.ldap from the tarball. Indeed I did, but the documentation isn't exactly extensive. :( Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: [Dbmail] LDAP Schema
Aaron Stone wrote: Please read the DBMail config file's [LDAP] section. It is designed to interact with essentially arbitrary schemas, you simply tell it what the field names are it'll use them. You are encouraged to use your existing schema as much as possible. There's no need to convert your users over to dbmailUsers. You can add the dbmailUsers schema in addition to your existing user schemas in order to get the additional dbmail fields, but you can just as well re-use other fields available in your schema. I'm aware of all that, and the default schema by and large does that. But at the same time I see no reason not to add the dbmailUser object attributes to users as per this: USER_OBJECTCLASS = top,account,dbmailUser Other than the fact that I can't seem to add the object class to an existing user to a class violation somewhere. :-/ Since you mention Windows users authenticating, are you working with an Active Directory server? No, it's OpenLDAP. The Windows clients are authenticated with pGina. Gordan ___ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail