[PATCH] Random patches

Denis Cardon denis.cardon at tranquil-it-systems.fr
Fri Feb 27 03:27:50 MST 2015


Hi Jeremy and al.,

Le 27/02/2015 01:21, Jeremy Allison a écrit :
> On Thu, Feb 26, 2015 at 08:42:21AM -0800, Jeremy Allison wrote:
>> On Wed, Feb 25, 2015 at 05:05:13PM -0800, Jeremy Allison wrote:
>>>>> in the changeset that would cause a connection
>>>>> fail with NT_STATUS_INTERNAL_ERROR.
>>>>
>>>> Hmmm. It's getting:
>>>>
>>>> /memdisk/jra/a/b12565/samba/bin/smbd: STATUS=daemon 'smbd' finished starting up and ready to serve connections
>>>> /memdisk/jra/a/b12565/samba/bin/smbd: Failed to fetch record!
>>>> /memdisk/jra/a/b12565/samba/bin/winbindd: ndr_push_error(5): Bad character conversion
>>>> /memdisk/jra/a/b12565/samba/bin/smbd: Failed to generate session_info (user and group token) for session setup: NT_STATUS_INTERNAL_ERROR
>>>> Traceback (most recent call last):
>>>>
>>>> Looks like a winbindd lookup from smbd is failing due
>>>> to 'Bad character conversion' ?
>>>
>>> OK - this seems to be repeatably failing at least
>>> on autobuild, but not so for on local tests.
>>>
>>> So *something* in this patchset is triggering
>>> this, but for the life of me I can't see what
>>> right now :-(.
>>
>> Local test passes samba3.base.attr(plugin_s4_dc)
>> which is the one the autobuild is failing on.
>>
>> Also I don't see the:
>>
>> /memdisk/jra/a/b12565/samba/bin/winbindd: ndr_push_error(5): Bad character conversion
>>
>> which I believe is the heart of the problem.
>>
>> Hmmm. What's different on an autobuild make test
>> from a local make test ?
>
> OK, the patch that seems to be causing problems is
> this one (attached). It's in the right area (dealing
> with winbindd) although for the life of me I can't
> see why it would cause this to fail on autobuild
> but work locally.
>
> I've pushed all the others, and I'll keep looking
> at this.

just a thought about it, hoping it is not just noise : could it fail 
because of a different charset definition in smb.conf? Yesterday I had a 
non consistent error when re-joining a few old DCs with some replication 
error (due to bad mtu, bad firewalling, objectclass missing in deleted 
objects, lingering objects, charset mismatch in DCs, jumbo groups, 
etc.). On all but one everything was ok, and on the failing join I had 
the following error (longer output thereafter):

Conversion error: Illegal multibyte sequence(�~)

On that DC there was a mixup between the former installation (compiled 
from source with a smb.conf configured with Unix charset = iso8859-1) 
and sernet packages. I didn't report the issue because cleaning up the 
setup did bring everything back to normal, but I thought it was weird 
that a charset definition could make replication break.

hope this helps,

Denis

PS : By the way, I'd say it is kind of weird to have Chinese characters 
in the cn=configuration partition, the failing entry classdisplayname 
attribute value is: IntelliMirror 组 ...?

# samba-tool domain join ECOLES.MYDOMAIN.FR DC -U 
Administrator at ecoles.mydomain.fr --server=ecole1 --site=EAFRA
Password for [Administrator at ecoles.mydomain.fr]:
workgroup is ECOLES
realm is ecoles.mydomain.fr
checking sAMAccountName
Adding CN=S-EC-29,OU=Domain Controllers,DC=ecoles,DC=mydomain,DC=fr
Adding 
CN=S-EC-29,CN=Servers,CN=EAFRA,CN=Sites,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr
Adding CN=NTDS 
Settings,CN=S-EC-29,CN=Servers,CN=EAFRA,CN=Sites,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr
Adding SPNs to CN=S-EC-29,OU=Domain Controllers,DC=ecoles,DC=mydomain,DC=fr
Setting account password for S-EC-29$
Enabling account
Calling bare provision
No IPv6 address will be assigned
Provision OK for domain DN DC=ecoles,DC=mydomain,DC=fr
Starting replication
Schema-DN[CN=Schema,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr] 
objects[402/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr] 
objects[804/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr] 
objects[1206/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr] 
objects[1550/1550] linked_values[0/0]
Analyze and apply schema objects
Partition[CN=Configuration,DC=ecoles,DC=mydomain,DC=fr] 
objects[402/4908] linked_values[0/0]
Conversion error: Illegal multibyte sequence(�~)
Failed to convert object 
CN=IntellimirrorGroup-Display,CN=804,CN=DisplaySpecifiers,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr: 
WERR_GENERAL_FAILURE
Failed to convert objects: WERR_GENERAL_FAILURE
Join failed - cleaning up
checking sAMAccountName
Deleted CN=S-EC-29,OU=Domain Controllers,DC=ecoles,DC=mydomain,DC=fr
Deleted CN=NTDS 
Settings,CN=S-EC-29,CN=Servers,CN=EAFRA,CN=Sites,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr
Deleted 
CN=S-EC-29,CN=Servers,CN=EAFRA,CN=Sites,CN=Configuration,DC=ecoles,DC=mydomain,DC=fr
ERROR(<type 'exceptions.TypeError'>): uncaught exception - Failed to 
process chunk: NT_STATUS_UNSUCCESSFUL
   File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", 
line 175, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/samba/netcmd/domain.py", 
line 555, in run
     machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
   File "/usr/lib64/python2.6/site-packages/samba/join.py", line 1172, 
in join_DC
     ctx.do_join()
   File "/usr/lib64/python2.6/site-packages/samba/join.py", line 1077, 
in do_join
     ctx.join_replicate()
   File "/usr/lib64/python2.6/site-packages/samba/join.py", line 803, in 
join_replicate
     replica_flags=ctx.replica_flags)
   File "/usr/lib64/python2.6/site-packages/samba/drs_utils.py", line 
256, in replicate
     schema=schema, req_level=req_level, req=req)



>
> Cheers,
>
> 	Jeremy.
>

-- 
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr



More information about the samba-technical mailing list