The Samba-Bugzilla – Bug 8929
correct "servicePrincipalName" handling
Last modified: 2018-11-14 08:34:28 UTC
"servicePrincipalName" should be treated case-insensitively in respect to matching. This means that "HOST/somename" is not allowed when "host/somename" is already there.
See thread "cannot rename windows xp machine in samba4" on samba-technical.
I really think that this needs to be fixed before s4 final.
This branch seems to have some patches for the problem...
s4:sam.py - "servicePrincipalName" - test for case-insensitiveness
Andrew, Matthias any plan to get this to master/v4-0-test?
They need some rework in order to pass the tests. I'm sorry but I cannot do it at the moment.
I paste you the explanations which Andrew gave me some time ago:
> Sadly this has required a fair bit of work, even to just get the obvious
> problems sorted.
> In particular, the error codes from the operator_fn() hook cannot be
> ignored, and we should not pass in a memory context to a function that
> does not itself return memory.
> I've not had a chance to actually test these, and I'm a little worried
> about what would happen for the cases where we never match (element
> values containing a deleted DN).
> I've pushed my rework (compiles, untested so far) to my mdw-master
Moving to 4.1 as I don't think it's critical for 4.0.0 fix can be made for 4.0.x
Metze, please have a look at my updated branch: http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=log;h=refs/heads/ldb_schema.
I think I have found the issue which prevented this from working.
the ldb_schema branch fails autobuild due to errors in the 'make test' of ldb. That is the main reason this wasn't merged.
Matthias can you have a look at why your branch fails autobuid ?
(In reply to comment #6)
> Matthias can you have a look at why your branch fails autobuid ?
I think this will pass autobuild:
Matthias and Andrew, can I add your review and push it to master?
Simo, can we also get your review?
(In reply to comment #7)
> (In reply to comment #6)
> > Matthias can you have a look at why your branch fails autobuid ?
> I think this will pass autobuild:
> Matthias and Andrew, can I add your review and push it to master?
> Simo, can we also get your review?
passed autobuild twice for me.
Is this a blocker for 4.1.0 or 4.2?
(In reply to comment #9)
> Is this a blocker for 4.1.0 or 4.2?
Comment from Metze:
For the patches for https://bugzilla.samba.org/show_bug.cgi?id=8929
(correct "servicePrincipalName" handling)
I just need the permission from Andrew and Matthias to add their
sign-off to the patches. I already reviewed them, but I'd like to get
an ack from Simo.
I am sorry that I have not answered earlier. The patches are perfectly okay.
These tags may be added to https://gitweb.samba.org/?p=metze/samba/wip.git;a=commitdiff;h=780f108588616b
Reviewed-by: Andrew Bartlett <firstname.lastname@example.org>
Signed-off-by: Andrew Bartlett <email@example.com>
If as indicated this all passes autobuild, it will be great to finally have this fixed in the tree (even if it does make some things slower).
This should be the fixed up version of the last patch (test-generic.sh). Please review!
Please attach the patches and review flags to the bug report! Thanks!
This gets larger than expected :-(
Don't block 4.1.0 it's not a regression compared to 4.0.x
Any news on this one?
Guys, I run into a 8418 mismatch problem and it seems to be cause by this issue, any progress on this? Can it make it into 4.2?
This is really important for us.
I would love to help testing.
@metze: any news here? Did you manage to do something?
I stumbled over my patches written some years ago and so I wonder if this is still a current issue. Or has it been solved differently?
since I still think that this is a very crucial point for Samba's directory implementation and I have seen no one intended to fix I have resumed the work on this issue.
The decision was also motivated by the recent schema work done by Andrew and his colleagues at Catalyst.
@metze + @abartlet: Please find my updated branch on: https://git.samba.org/samba.git/?p=mdw/samba.git;a=log;h=refs/heads/ldb_schema.new
My idea would be to launch a private autobuild on this to see if it really works. How can I approach this?
LDB tests fail with:
[==========] 44 test(s) run.
[==========] Running 2 test(s).
[ RUN ] test_ldb_msg_find_duplicate_val
[ FAILED ] test_ldb_msg_find_duplicate_val
[ RUN ] test_ldb_msg_find_common_values
[ FAILED ] test_ldb_msg_find_common_values
[==========] 2 test(s) run.
Just to connect to dots, here is the associated mail thread for the most recent re-raising of this: