timoguin / goldap

An LDAP CLI client written in Golang
MIT License
1 stars 0 forks source link

feat (security): Ensure LDAP credentials are cleared from memory after bind #8

Open timoguin opened 2 years ago

timoguin commented 2 years ago

Currently, LDAP credentials are carried in bind-dn and password variables. Even if we use an encrypted credential store (#7) to retrieve these sensitive values, they are in program memory at least through the lifetime of the LDAP query (which could have a long execution time). See if we can clear these sensitive values from memory after the session is bound.