AdLDAP informed current set of functions, but a little digging will get us farther.

Comments

retsamedoc’s picture

Do not forget other LDAP Tools written in PHP such as phpLDAPadmin.

johnbarclay’s picture

I looked through phpldapadmin. I see some handy code in lib/functions.php especially for encryption. lib/ldap_error_codes looks useful, not sure how standardized they are. I also saw some handy code in pear's Net_LDAP2 (http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Ut... and http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_En...).

retsamedoc’s picture

Take a look at the code I checked in earlier, I've written a version of that encryption method. The ldap_authentication.admin.inc file will (in the near future) include some library checks to ensure only usable types can be chosen.

johnbarclay’s picture

Love your encryption code. I just feel like much of it is already in the other modules (aes and encryption) and they offer apis. I can't say I know the state of the aes and encrypt modules and what types they support though.

I'm fine with putting the encryption code in for expediency, but prefer it be in core or another api module.

John