Bug 5062 - ERROR: string overflow by 1 (256 - 255) in safe_strcpy
Summary: ERROR: string overflow by 1 (256 - 255) in safe_strcpy
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.25b
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 17:55 UTC by Josh Miller
Modified: 2007-11-07 08:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Miller 2007-11-06 17:55:31 UTC
Environment:
- Samba 3.0.25b
- Windows Server 2003 R2 AD forest
- winbind authentication, ads security (see config below)
- openldap idmap store

When attempting to 'sudo -s' from the command line when logged in via winbind, I get the following log messages:

Nov  6 15:45:59 <host> winbindd[11514]:   ERROR: string overflow by 1 (256 - 255) in safe_strcpy [[11450]: lookupname ���o�~��^D�ۈ�0��d:�^W^K9tP�p��}^O�^^�7\"���N���
�^Fњ+4�^XT��^M�j^P�J^E�Q^V�<^Y�q�3B^]^N�]}�^S�MB��l"� 
Nov  6 15:45:59 <host> winbindd[11514]:   �^Y^R=Bʻ#�q^G��n��K_��X^D��k��^Ti^N>�@};N 
Nov  6 15:45:59 <host> winbindd[11514]:   !Y��6�^N��h���F^S7ڎ^W��lhUV��i>���^]�8Io!�/�?@�^G�xMJTU�hO^D1�^Y�I22���U �YD�^_���{KH�R.��l]��6:� %��`�a(���^\s|̋s&�0^Tτ�H8� 
Nov  6 15:46:06 <host> winbindd[11450]:   ERROR: string overflow by 1 (256 - 255) in safe_strcpy [[11512]: endpwent 

I apologize for the unrecognizable characters, but that is what I get in the logs.  This is at a loglevel of 3.

I'm using the SerNet RPMs:

samba3-utils-3.0.25b-33
samba3-client-3.0.25b-33
samba3-cifsmount-3.0.25b-33
samba3-winbind-3.0.25b-33
system-config-samba-1.2.21-1.el4.1
samba3-3.0.25b-33

My config is:

#/etc/samba/smb.conf
[global]
   workgroup = <domain>
   security = ads
   server string = Samba Server
   log file = /var/log/samba/%m.log
   max log size = 50   log level = 1

   password server = *  
   realm = <realm>

   os level = 10  
   local master = no
   domain master = no
   preferred master = no
   wins support = no
   wins server = <ip address>
   wins proxy = no

   dns proxy = no
   ldap admin dn = "<dn>"
   ldap suffix = <dn>

   idmap backend = ldap://<ldap server>
   idmap gid = 150000 - 200000
   idmap uid = 150000 - 200000

   # winbind configuration
   winbind use default domain = yes
   winbind nested groups = yes

   winbind enum users = no
   winbind enum groups = no

   template homedir = /users/home/%u
   template shell = /bin/bash

   # local share declarations only
   include = /etc/samba/local.conf

More information available upon request.
Comment 1 Josh Miller 2007-11-07 08:45:42 UTC
I am having trouble reproducing this error.  Please put this bug on hold (or whatever the policy is for these cases).