Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Failed to create user after adding dn attribute #813

Open
wzbname opened this issue Nov 18, 2022 · 0 comments
Open

Failed to create user after adding dn attribute #813

wzbname opened this issue Nov 18, 2022 · 0 comments

Comments

@wzbname
Copy link

wzbname commented Nov 18, 2022

  • Adldap2 Version: v10.4.3
  • LDAP Type: Active Directory
  • PHP Version: 7.1.11

Description:

          $user                             = $provider->make()->user([
              'cn' => 'John Doe',
          ]);
           $user->save();  return true;
           
          $user                             = $provider->make()->user([
              'cn' => 'John Doe',
              'dn' => 'cn=John Doe,ou=Users,dc=gdcg,dc=cn'
          ]);
           $user->save();  return false;

I don't understand why after adding the attribute of dn, $user->save(); return false

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant