I'm using Net::LDAP::LDIF to take a dumped OpenLDAP database and give me a new ldif file with some of the unneeded attributes removed. Pretty simple code and works just fine except that in the dump, the userPassword is base64 but in the new ldif it's not. I didn't see any way to write the new ldif file with that attribute encrypted. E.g.
instead ofuserPassword:: e1NBU0x9YWFndWlsYXJAUlVUR0VSUy5FRFU=
thanks, dsuserPassword: {SASL}netid@DOMAIN.EDU
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |