Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for QueryLDAPPolicyEntities (0.09 sec)

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

    	// Validate API arguments.
    
    	q := madmin.PolicyEntitiesQuery{
    		Users:  r.Form["user"],
    		Groups: r.Form["group"],
    		Policy: r.Form["policy"],
    	}
    
    	// Query IAM
    
    	res, err := globalIAMSys.QueryLDAPPolicyEntities(r.Context(), q)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Encode result and send response.
    
    	data, err := json.Marshal(res)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. cmd/iam.go

    			if err == nil {
    				groupSet = set.CreateStringSet(info.MemberOf...)
    			}
    			cleanQ.Users[user] = groupSet
    		}
    	}
    	return cleanQ
    }
    
    // QueryLDAPPolicyEntities - queries policy associations for LDAP users/groups/policies.
    func (sys *IAMSys) QueryLDAPPolicyEntities(ctx context.Context, q madmin.PolicyEntitiesQuery) (*madmin.PolicyEntitiesResult, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    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