Howdy! I finally got this working with the base openldap install. Learned a lot about ldap searching. Thanks for the lib!!
Now when the user object shows up I am trying to save the jpegPhoto to a file for use as the profile pic. But I cannot figure out the format
I have tried (among many other things):
fs.writeFileSync(jpgPath, ldapUser.jpegPhoto);
And
var jpg = new Buffer(ldapUser.jpegPhoto, 'base64');
fs.writeFileSync(jpgPath, jpg);
Any ideas?
Thanks!
Howdy! I finally got this working with the base openldap install. Learned a lot about ldap searching. Thanks for the lib!!
Now when the user object shows up I am trying to save the jpegPhoto to a file for use as the profile pic. But I cannot figure out the format
I have tried (among many other things):
fs.writeFileSync(jpgPath, ldapUser.jpegPhoto);
And
var jpg = new Buffer(ldapUser.jpegPhoto, 'base64');
fs.writeFileSync(jpgPath, jpg);
Any ideas?
Thanks!