Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsLDAPUserDN (0.11 sec)

  1. internal/config/identity/ldap/ldap.go

    // parsing alone.
    func (l Config) ParsesAsDN(dn string) bool {
    	_, err := ldap.ParseDN(dn)
    	return err == nil
    }
    
    // IsLDAPUserDN determines if the given string could be a user DN from LDAP.
    func (l Config) IsLDAPUserDN(user string) bool {
    	udn, err := ldap.ParseDN(user)
    	if err != nil {
    		return false
    	}
    	for _, baseDN := range l.LDAP.GetUserDNSearchBaseDistNames() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/iam.go

    	}
    
    	if sys.usersSysType != LDAPUsersSysType {
    		return nil, errIAMActionNotAllowed
    	}
    
    	select {
    	case <-sys.configLoaded:
    		stsMap, err := sys.store.GetAllSTSUserMappings(sys.LDAPConfig.IsLDAPUserDN)
    		if err != nil {
    			return nil, err
    		}
    		ldapUsers := make(map[string]madmin.UserInfo, len(stsMap))
    		for user, policy := range stsMap {
    			ldapUsers[user] = madmin.UserInfo{
    				PolicyName: policy,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top