diff --git a/ldap/parse.go b/ldap/parse.go index 22a285c6c6d4f82694106852293f93f97a0b1f91..2aec0b26f9db2142f41b51b111bda36875e177ca 100644 --- a/ldap/parse.go +++ b/ldap/parse.go @@ -6,6 +6,8 @@ import ( "gopkg.in/ldap.v2" ) +// ParseScope parses a string representation of an LDAP scope into the +// proper enum value. func ParseScope(s string) (int, error) { switch s { case "base":