[Samba] Errors on migration from 3.0.4 to 3.0.24 with LDAP

Jonathan Clarke jclarke at linagora.com
Tue Apr 15 22:35:31 GMT 2008


Hi all,

I am encountering some error messages on the first launch of samba
3.0.24 using data stored in an LDAP directory by previous version 3.0.4.

These error messages occur only once on the first launch of the new
version of samba, never again. I would like to know what possible
consequences they have.

Detailed output is at the end of this message, here is a brief
description of both of the error messages:

1) "ERROR: string overflow by <n> in safe_strcat [-...]"
These messages have <n> varying from 2 to 11, and the string enclosed in
brackets ([]) is always "-" followed by some numbers (part of an SID?).
<n> also always corresponds to the length of the string in brackets.

 From reading the safe_strcat function in the code, this means the string
displayed is dropped, and not concatenated to another string. I am
unclear as to why, and what the consequences are.

After a series of them, the following lines are displayed:
> pdb_init_ldapsam: Resetting SID for domain ABC.DOM based on pdb_ldap results S-206-547431424-7-2396148-7-2149158415-3218881064-1556950-2170952608-2149158415-7-2149460952-2170952584-3218881200-3218881080-2148326621-2149158415-1025-83886080-21-832462299-1939947750-1103500926-0-0-0-0-0-0-0-0-0-0-0-1190148608-2149460952-2170949008-217 -> S-1-5-21-832462299-1939947750-1103500926
> New global sam SID: S-1-5-21-832462299-1939947750-1103500926

2) "account_policy_get: tdb_fetch_uint32 failed for field <n> (...),
returning 0"
These messages have <n> ranging from 1 to 10 (see full output below).

I read the following post stating these are unimportant, one-time only
messages. I assume this is still the case?
http://lists.samba.org/archive/samba/2005-September/110395.html


I am most keen for any pointers or ideas anyone here can provide as to 
the consequences of these messages. Thank you in advance.

Regards,
Jonathan Clarke

Full output follows:

ERROR: string overflow by 7 in safe_strcat [-2170952280]
ERROR: string overflow by 11 in safe_strcat [-3218881224]
ERROR: string overflow by 11 in safe_strcat [-2148039878]
ERROR: string overflow by 11 in safe_strcat [-3218881192]
ERROR: string overflow by 11 in safe_strcat [-2149510084]
ERROR: string overflow by 11 in safe_strcat [-2170952288]
ERROR: string overflow by 11 in safe_strcat [-2149460952]
ERROR: string overflow by 11 in safe_strcat [-2170952280]
ERROR: string overflow by 11 in safe_strcat [-2170952288]
ERROR: string overflow by 11 in safe_strcat [-3218881224]
ERROR: string overflow by 11 in safe_strcat [-2147702937]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 11 in safe_strcat [-2149460952]
ERROR: string overflow by 4 in safe_strcat [-577]
ERROR: string overflow by 2 in safe_strcat [-1]
ERROR: string overflow by 11 in safe_strcat [-3218882312]
ERROR: string overflow by 11 in safe_strcat [-2148041201]
ERROR: string overflow by 11 in safe_strcat [-3218881256]
ERROR: string overflow by 11 in safe_strcat [-2149510084]
ERROR: string overflow by 11 in safe_strcat [-2170952376]
ERROR: string overflow by 11 in safe_strcat [-2147747694]
ERROR: string overflow by 11 in safe_strcat [-3218881287]
ERROR: string overflow by 2 in safe_strcat [-1]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 3 in safe_strcat [-66]
ERROR: string overflow by 4 in safe_strcat [-384]
ERROR: string overflow by 9 in safe_strcat [-10678081]
ERROR: string overflow by 11 in safe_strcat [-3934326531]
ERROR: string overflow by 11 in safe_strcat [-1124073568]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 11 in safe_strcat [-2765358725]
ERROR: string overflow by 11 in safe_strcat [-1668572463]
ERROR: string overflow by 11 in safe_strcat [-1835103023]
ERROR: string overflow by 11 in safe_strcat [-1932484962]
ERROR: string overflow by 11 in safe_strcat [-1701995365]
ERROR: string overflow by 11 in safe_strcat [-1949201268]
ERROR: string overflow by 6 in safe_strcat [-25188]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
ERROR: string overflow by 2 in safe_strcat [-0]
	pdb_init_ldapsam: Resetting SID for domain ABC.DOM based on pdb_ldap 
results 
S-206-547431424-7-2396148-7-2149158415-3218881064-1556950-2170952608-2149158415-7-2149460952-2170952584-3218881200-3218881080-2148326621-2149158415-1025-83886080-21-832462299-1939947750-1103500926-0-0-0-0-0-0-0-0-0-0-0-1190148608-2149460952-2170949008-217 
-> S-1-5-21-832462299-1939947750-1103500926
	New global sam SID: S-1-5-21-832462299-1939947750-1103500926
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password 
length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password 
history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon 
to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum 
password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum 
password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout 
duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count 
minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout 
attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect 
time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine 
password change), returning 0


More information about the samba mailing list