-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7-bit check plugin not checking MODRDN operation #978
Comments
Comment from mreynolds (@mreynolds389) at 2014-01-22 22:15:08 attachment |
Comment from nhosoi (@nhosoi) at 2014-01-23 04:07:24 Hi Mark, Sorry, I need your help to understand why your patch fixes the problem... In preop_modrdn, superior is retrieved from pblock, which is NULL if newsuperior is not given in modrdn. In the case, target_sdn is set.
The newsuperior is set in do_modrdn. If newsuperior is not given in the modrdn operation, snewsuperior is NULL. So, preop_modrdn in 7bit.c is getting NULL at the line 596 above...
Your patch looks there is a case newsuperior is give but it is empty?
But it's supposed to be rejected in do_modrdn...
I must be missing something... |
Comment from mreynolds (@mreynolds389) at 2014-01-23 20:35:42 Replying to [comment:5 nhosoi]:
That's what I would of thought, but it returns an empty Slapi_DN. Note I am doing: dn: uid=tuser,ou=people,dc=example,dc=com
Turns out the pblock value will never be null, as its actually a Slapi_DN struct, and not a pointer to one: 3017: case SLAPI_MODRDN_NEWSUPERIOR_SDN: So its either set or not set, but it's never NULL. |
Comment from nhosoi (@nhosoi) at 2014-01-23 23:21:32 Aha, thank you so much for the clear answer, Mark! |
Comment from mreynolds (@mreynolds389) at 2014-01-24 02:00:13 git merge ticket47641 git push origin master commit ddbec8c 1.3.2 fe75b11..628cb90 389-ds-base-1.3.2 -> 389-ds-base-1.3.2 1.3.1 aec2050..3cfd994 389-ds-base-1.3.1 -> 389-ds-base-1.3.1 1.3.0 b51a57b..a696448 389-ds-base-1.3.0 -> 389-ds-base-1.3.0 1.2.11 |
Comment from mreynolds (@mreynolds389) at 2017-02-11 23:07:45 Metadata Update from @mreynolds389:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47641
Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 6): Bug 1034265
The text was updated successfully, but these errors were encountered: