From 0f7e24b39bdab05938299a0841c42ed7cc7e0d31 Mon Sep 17 00:00:00 2001 From: Daniel Hall Date: Mon, 8 Apr 2024 13:52:04 -0700 Subject: [PATCH] Fixed filter params --- cmd/gonic/gonic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gonic/gonic.go b/cmd/gonic/gonic.go index aa385be..3a8489f 100644 --- a/cmd/gonic/gonic.go +++ b/cmd/gonic/gonic.go @@ -88,8 +88,8 @@ func main() { flag.StringVar(&ldapConfig.BindPass, "ldap-bind-pass", "", "the password of the LDAP bind user (required for LDAP)") flag.StringVar(&ldapConfig.BaseDN, "ldap-base-dn", "", "the base DN for LDAP objects (required for LDAP)") - flag.StringVar(&ldapConfig.Filter, "ldap-filter", "(uid=*)", "the filter to select LDAP objects with (optional)") - flag.StringVar(&ldapConfig.Filter, "ldap-admin-filter", "(memberof=cn=admin)", "the filter to select LDAP objects with (optional)") + flag.StringVar(&ldapConfig.Filter, "ldap-filter", "", "the filter to select LDAP objects with (optional)") + flag.StringVar(&ldapConfig.AdminFilter, "ldap-admin-filter", "(memberof=cn=admin)", "the filter to select LDAP objects with (optional)") flag.StringVar(&ldapConfig.FQDN, "ldap-fqdn", "", "the name of the server to connect to (required for LDAP)") flag.UintVar(&ldapConfig.Port, "ldap-port", 389, "what port the LDAP server is hosted on (optional)")