- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetValidatedGroupDN (0.38 sec)
-
internal/config/identity/ldap/ldap.go
return l.GetValidatedDNUnderBaseDN(conn, userDN, l.LDAP.UserDNSearchBaseDistNames) } // GetValidatedGroupDN validates the given group DN. If conn is nil, creates a // connection. The returned boolean is true iff the group DN is found under one // of the configured LDAP base DNs. func (l *Config) GetValidatedGroupDN(conn *ldap.Conn, groupDN string) (string, bool, error) { if conn == nil { var err error
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 15:50:16 GMT 2024 - 9.9K bytes - Viewed (0) -
cmd/iam.go
var normalizedGroups []string for _, group := range groups { // For a group, we store the normalized DN even if it not under a // configured base DN. validatedGroup, _, err := sys.LDAPConfig.GetValidatedGroupDN(conn, group) if err != nil { collectedErrors = append(collectedErrors, fmt.Errorf("could not validate `%s` exists in LDAP directory: %w", group, err)) continue } if validatedGroup == "" {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 21:28:16 GMT 2024 - 71.1K bytes - Viewed (1) -
cmd/admin-handlers-users.go
// form of the entityName (which will be an LDAP DN). var err error if isGroup { var foundGroupDN string var underBaseDN bool if foundGroupDN, underBaseDN, err = globalIAMSys.LDAPConfig.GetValidatedGroupDN(nil, entityName); err != nil { iamLogIf(ctx, err) } else if foundGroupDN == "" || !underBaseDN { err = errNoSuchGroup } entityName = foundGroupDN } else {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 12:41:13 GMT 2024 - 77.5K bytes - Viewed (0) -
cmd/site-replication.go
// form of the entityName (which will be an LDAP DN). var err error if isGroup { var foundGroupDN string var underBaseDN bool if foundGroupDN, underBaseDN, err = globalIAMSys.LDAPConfig.GetValidatedGroupDN(nil, entityName); err != nil { iamLogIf(ctx, err) } else if foundGroupDN == "" || !underBaseDN { err = errNoSuchGroup } entityName = foundGroupDN } else {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 184.2K bytes - Viewed (1)