Commit 23f7ab21 authored by ale's avatar ale

Encode "bool" LDAP attrs as true/false instead of yes/no

parent 6a90ae2c
Pipeline #5754 passed with stages
in 4 minutes and 46 seconds
......@@ -71,12 +71,12 @@ func s2b(s string) bool {
}
}
// Bool to LDAP value. Encoded as yes/no.
// Bool to LDAP value. Encoded as true/false.
func b2s(b bool) string {
if b {
return "yes"
return "true"
}
return "no"
return "false"
}
// Convert a string to a []string with a single item, or nil if the
......
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