[Phamm] Phamm and PureFTPd integration
Victor
detroit2000 at mail.ru
Thu Dec 3 12:11:11 CET 2009
Hello, Alessandro and Mirko!
I really appreciate your work with Phamm - it's really great tool and I managed to integrate OpenLdap and Postfix with help of this guide http://www.howtoforge.com/postfix-virtual-hosting-with-ldap-backend-and-with-dovecot-pop3-imap-on-ubuntu-8.10
But I have one question - about Phamm and PureFTPd. Do you have some more information about how to integrate Phamm with PureFTPd and OpenLdap 2.3.43? As far as I can see (while searching all the web), very few people tried to do that.
So, what I did to integrate Phamm and PureFTPd with OpenLDAP:
1.
Phamm settings.
I've edited phamm_catalog/plugins/ftp.xml file:
<isDomainRelated>0</isDomainRelated>
<isPostmasterRelated>0</isPostmasterRelated>
<isAccountRelated>1</isAccountRelated>
After that I've changed <postmaster>...</postmaster> TO <account>...</account>, because is AccountRelated=1 looking for a valid <account> section
I've edited Phamm's file config.inc.php and enabled the ftp plugin
2.
OpenLDAP settings.
Edited conf file /etc/ldap/slapd.conf:
#Inserted the following info the slapd.conf (after the last line that says include /etc/ldap/schema/..)
include /etc/ldap/schema/pureftpd.schema
#Added permissions for creating required attributes
access to dn.regex=".+,vd=([^,]+),ou=hosting,dc=linuxdomain,dc=local$" attrs=FTPQuotaMBytes,FTPStatus,FTPQuotaFiles,uid,otherPath
by dn="cn=root,dc=linuxdomain,dc=local" write
by anonymous read
by self read
by dn.exact,expand="cn=postmaster,vd=$1,ou=hosting,dc=linuxdomain,dc=local" read
3.
When I tried to create an ftp user account for virtual domain with help of Phamm, I've got an following error:
- LDAP error: Object Class violation (Code 65)
Can you,please, help me and provide some additional information about how to integrate Phamm with PureFTPd (or ProFTPd) and OpenLdap 2.3.43?
Regards,
More information about the Phamm
mailing list