Castaglia / proftpd-mod_sftp_ldap

ProFTPD module which retrieves SSH user/host keys from LDAP
1 stars 1 forks source link

module needs to read the sshPublicKey in one line #2

Closed cesarpball closed 8 years ago

cesarpball commented 8 years ago

Hello Castaglia,

The attribute configured in the LDAP schema can be just added in one line and I am getting errors when the module try decoding the public key:

2016-08-02 08:18:23,919 mod_sftp_ldap/0.1[28227]: LDAP search returned 2 keys
2016-08-02 08:18:23,920 mod_sftp_ldap/0.1[28227]: error comparing client-sent key with LDAP data (row 1): Invalid argument
2016-08-02 08:18:23,920 mod_sftp_ldap/0.1[28227]: error base64-decoding key data from LDAP directory
2016-08-02 08:18:23,920 mod_sftp_ldap/0.1[28227]: error comparing client-sent key with LDAP data (row 2): Invalid argument
2016-08-02 08:18:23,920 mod_sftp_ldap/0.1[28227]: error base64-decoding key data from LDAP directory

Thanks

Castaglia commented 8 years ago

This PR should fix this behavior. Note that the mod_sftp_ldap module is now split into multiple source files; this means that the installation instructions are now slightly different.

Castaglia commented 8 years ago

Fixed in the master branch. Please re-open if you still find it not working as you need. Thanks!

cesarpball commented 8 years ago

Looks working now. Thanks very much for your help! @Castaglia !