summaryrefslogtreecommitdiffstats
path: root/services/auth/source/ldap/security_protocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/source/ldap/security_protocol.go')
-rw-r--r--services/auth/source/ldap/security_protocol.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/auth/source/ldap/security_protocol.go b/services/auth/source/ldap/security_protocol.go
index 47c9d30e5c..bb0c7770a1 100644
--- a/services/auth/source/ldap/security_protocol.go
+++ b/services/auth/source/ldap/security_protocol.go
@@ -19,6 +19,11 @@ func (s SecurityProtocol) String() string {
return SecurityProtocolNames[s]
}
+// Int returns the int value of the SecurityProtocol
+func (s SecurityProtocol) Int() int {
+ return int(s)
+}
+
// SecurityProtocolNames contains the name of SecurityProtocol values.
var SecurityProtocolNames = map[SecurityProtocol]string{
SecurityProtocolUnencrypted: "Unencrypted",