Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 337 for userDNs (0.07 sec)

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

    		return
    	}
    
    	dnList := r.Form["userDNs"]
    	isAll := r.Form.Get("all") == "true"
    	selfOnly := !isAll && len(dnList) == 0
    
    	if isAll && len(dnList) > 0 {
    		// This should be checked on client side, so return generic error
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	// Empty DN list and not self, list access keys for all users
    	if isAll {
    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. tests/joins_test.go

    	}
    
    	DB.Create(&users)
    
    	var userIDs []uint
    	for _, user := range users {
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var users2 []User
    	if err := DB.Joins("Company").Joins("Manager").Joins("Account").Find(&users2, "users.id IN ?", userIDs).Error; err != nil {
    		t.Fatalf("Failed to load with joins, got error: %v", err)
    	} else if len(users2) != len(users) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:58:13 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. tests/create_test.go

    	}
    
    	if results := DB.Create(&users); results.Error != nil {
    		t.Fatalf("errors happened when create: %v", results.Error)
    	} else if results.RowsAffected != int64(len(users)) {
    		t.Fatalf("rows affected expects: %v, got %v", len(users), results.RowsAffected)
    	}
    
    	var userIDs []uint
    	for _, user := range users {
    		userIDs = append(userIDs, user.ID)
    		CheckUser(t, user, user)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. tests/preload_test.go

    	if err := DB.Create(&users).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	var userIDs []uint
    	for _, user := range users {
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var users2 []User
    	DB.Preload("Pets.Toy").Find(&users2, "id IN ?", userIDs)
    
    	for idx, user := range users2 {
    		CheckUser(t, user, users[idx])
    	}
    }
    
    func TestPreloadWithConds(t *testing.T) {
    	users := []User{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. tests/update_test.go

    		t.Errorf("Failed to update users")
    	}
    
    	if users[0].Name != "updates_01_newname" || users[0].Age != 100 {
    		t.Errorf("Record should be updated also with map")
    	}
    
    	if users[0].UpdatedAt.UnixNano() == lastUpdatedAt.UnixNano() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  6. chainable_api.go

    		}
    	}
    	return
    }
    
    // Limit specify the number of records to be retrieved
    //
    // Limit conditions can be cancelled by using `Limit(-1)`.
    //
    //	// retrieve 3 users
    //	db.Limit(3).Find(&users)
    //	// retrieve 3 users into users1, and all users into users2
    //	db.Limit(3).Find(&users1).Limit(-1).Find(&users2)
    func (db *DB) Limit(limit int) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.AddClause(clause.Limit{Limit: &limit})
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. docs/sts/ldap.md

    **Please note that when AD/LDAP is configured, MinIO will not support long term users defined internally.** Only AD/LDAP users (and the root user) are allowed. In addition to this, the server will not support operations on users or groups using `mc admin user` or `mc admin group` commands except `mc admin user info` and `mc admin group info` to list set policies for users and groups. This is because users and groups are defined externally in AD/LDAP.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    After authenticating in the system, you will see it like:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### Get your own user data
    
    Now use the operation `GET` with the path `/users/me`.
    
    You will get your user's data, like:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "******@****.***",
      "full_name": "John Doe",
      "disabled": false,
      "hashed_password": "fakehashedsecret"
    }
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/oauth2-jwt.md

    But you cannot convert from the gibberish back to the password.
    
    ### Why use password hashing
    
    If your database is stolen, the thief won't have your users' plaintext passwords, only the hashes.
    
    So, the thief won't be able to try to use that password in another system (as many users use the same password everywhere, this would be dangerous).
    
    ## Install `passlib`
    
    PassLib is a great Python package to handle password hashes.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:45:10 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. cmd/iam-object-store.go

    }
    
    func (iamOS *IAMObjectStore) loadUserConcurrent(ctx context.Context, userType IAMUserType, users ...string) ([]UserIdentity, error) {
    	userIdentities := make([]UserIdentity, len(users))
    	g := errgroup.WithNErrs(len(users))
    
    	for index := range users {
    		index := index
    		g.Go(func() error {
    			userName := path.Dir(users[index])
    			user, err := iamOS.loadUserIdentity(ctx, userName, userType)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
Back to top