Commit 0eb2c78d authored by ale's avatar ale

Fix default value of LDAP fields

parent 480f2280
......@@ -50,10 +50,10 @@ func (c *LDAPQueryConfig) Valid() error {
// attributes, it's more practical to set defaults rather than
// complain if values are unset.
if c.PublicKeyAttr == "" {
c.PublicKeyAttr = "userPublicKey"
c.PublicKeyAttr = "storagePublicKey"
}
if c.PrivateKeyAttr == "" {
c.PrivateKeyAttr = "userEncryptedKey"
c.PrivateKeyAttr = "storageEncryptedSecretKey"
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment