Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ldapUsers (0.05 sec)

  1. cmd/admin-handlers-idp-ldap.go

    			selfDN = cred.ParentUser
    		}
    		dnList = append(dnList, selfDN)
    	}
    
    	var ldapUserList []string
    	if isAll {
    		ldapUsers, err := globalIAMSys.ListLDAPUsers(ctx)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		for user := range ldapUsers {
    			ldapUserList = append(ldapUserList, user)
    		}
    	} else {
    		for _, userDN := range dnList {
    			// Validate the userDN
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:46:04 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. cmd/iam.go

    		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,
    				Status:     statusEnabled,
    			}
    		}
    		return ldapUsers, nil
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    type cleanEntitiesQuery struct {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    	// FIXME(vadmeste): move this to policy info in the future
    	ldapUsers, err := globalIAMSys.ListLDAPUsers(ctx)
    	if err != nil && err != errIAMActionNotAllowed {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	maps.Copy(allCredentials, ldapUsers)
    
    	// Marshal the response
    	data, err := json.Marshal(allCredentials)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ldap/LdapUser.java

    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    import org.dbflute.optional.OptionalThing;
    
    /**
     * An LDAP user.
     */
    public class LdapUser implements FessUser {
    
        private static final long serialVersionUID = 1L;
    
        /** The environment for LDAP connection. */
        protected Hashtable<String, String> env;
    
        /** The name of the user. */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. cmd/ftp-server-driver.go

    			if err != nil {
    				return nil, err
    			}
    			claims := make(map[string]any)
    			claims[expClaim] = UTCNow().Add(expiryDur).Unix()
    
    			claims[ldapUser] = lookupResult.NormDN
    			claims[ldapActualUser] = lookupResult.ActualDN
    			claims[ldapUserN] = ctx.Sess.LoginUser()
    
    			// Add LDAP attributes that were looked up into the claims.
    			for attribKey, attribValue := range lookupResult.Attributes {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    	audClaim = "aud"
    	issClaim = "iss"
    
    	// JWT claim to check the parent user
    	parentClaim = "parent"
    
    	// LDAP claim keys
    	ldapUser       = "ldapUser"       // this is a key name for a normalized DN value
    	ldapActualUser = "ldapActualUser" // this is a key name for the actual DN value
    	ldapUserN      = "ldapUsername"   // this is a key name for the short/login username
    	// Claim key-prefix for LDAP attributes
    	ldapAttribPrefix = "ldapAttrib_"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

            assertEquals("anotheruser", user2.getName());
    
            // Test with empty name
            LdapUser user3 = new LdapUser(testEnv, "");
            assertEquals("", user3.getName());
    
            // Test with null name
            LdapUser user4 = new LdapUser(testEnv, null);
            assertNull(user4.getName());
        }
    
        public void test_getEnvironment() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  8. cmd/sftp-server.go

    		}
    	}
    
    	expiryDur, err := globalIAMSys.LDAPConfig.GetExpiryDuration("")
    	if err != nil {
    		return nil, err
    	}
    
    	claims[expClaim] = UTCNow().Add(expiryDur).Unix()
    	claims[ldapUserN] = user
    	claims[ldapUser] = lookupResult.NormDN
    
    	cred, err := auth.GetNewCredentialsWithMetadata(claims, globalActiveCred.SecretKey)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapManager.java

         * @return a new LdapUser instance
         */
        protected LdapUser createLdapUser(final String username, final Hashtable<String, String> env) {
            return new LdapUser(env, username);
        }
    
        /**
         * Retrieves roles for the specified LDAP user based on the provided filters.
         *
         * @param ldapUser the LDAP user to retrieve roles for
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  10. cmd/user-provider-utils.go

    	if !credentials.IsServiceAccount() && !credentials.IsTemp() {
    		return madmin.BuiltinProvider // regular users are always internal
    	}
    
    	claims := credentials.Claims
    	if _, ok := claims[ldapUser]; ok {
    		return madmin.LDAPProvider // ldap users
    	}
    
    	if _, ok := claims[subClaim]; ok {
    		providerPrefix, _, found := strings.Cut(credentials.ParentUser, getKeySeparator())
    		if found {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top