Trying to add a user to a group #631
Unanswered
kstarkloff
asked this question in
Q&A
Replies: 1 comment
-
Hi @kstarkloff, I think there's code missing here. I'm not seeing where you're attempting to "do a login" or performing any assertions in the test. I'm also not sure where you're calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During a PHPUnit test, I try to add a user to a group. Then, the unit test should do a login to validate if only a user which is part of the group can do a login.
So, this is how the test runs:
When printing out the Dn of the
$ldapUser
(last line of the function), I get a result like this:cn=Prof. Melyssa Goldner,dc=example,dc=local
, but I expected something like this:cn=Prof. Melyssa Goldner,cn=administration_access,ou=Service Groups,dc=example,dc=local
Also, when I call something like this
my output is
with no members in the group although I attached a user to the group.
What I am missing here?
Beta Was this translation helpful? Give feedback.
All reactions