> Assuming that you are using a recent version of Solaris (were you saying
> Solaris 8, or implying an 8 char limit?), I can assure you that there is
> no 'standard' character limit, or at least not one that you're
running
> into. Maybe if you post your full smb.conf we could see if there isn't
> something else misconfigured.
Sorry about that, I was a bit ambiguous. I am running Solaris version 8,
and I was experiencing problems with usernames from winbind that were
longer than eight characters or contained spaces.
Samba build options are at the end of the message.
Here are the build options for smbd:
Here's my smb.conf at the moment:
[global]
workgroup = TEAMSTER
netbios name = WOODWARD
realm = TEAMSTER.TESTDOM.COM
server string = Samba 3.0.4
security = ads
log level = 3 passdb:5 auth:10 winbind:2
syslog = 0
log file = /usr/local/samba/var/%m
max log size = 100
encrypt passwords = yes
password server = atwater.teamster.testdom.com
idmap uid = 10000-20000
idmap gid = 10000-20000
name resolve order = hosts bcast
smb ports = 139 445
wins server = 10.1.31.2
winbind enum users = yes
winbind enum groups = yes
; winbind separator = /
winbind use default domain = yes
winbind enable local accounts = no
winbind nested groups = yes
username map = /usr/local/samba/lib/user.map
[myshare]
comment = "Home directory for David Doane"
path = /attach/blah
valid users = "TEAMSTER\Jimmy Hoffa" @"TEAMSTER\Domain
Admins"
public = no
Here are some of the errors I am receiving:
(From the workstation log file)
[2004/07/11 10:44:13, 3] smbd/sesssetup.c:reply_spnego_kerberos(180)
Ticket name is [Jimmy\ Hoffa@RCOPRI.RCOENG.COM]
[2004/07/11 10:44:13, 10] auth/auth_util.c:auth_add_user_script(74)
auth_add_user_script: no 'add user script'. Asking winbindd
[2004/07/11 10:44:13, 5] auth/auth_util.c:auth_add_user_script(81)
auth_add_user_script: winbindd_create_user() failed
[2004/07/11 10:44:13, 1] smbd/sesssetup.c:reply_spnego_kerberos(248)
Username RCOPRI\Jimmy\ Hoffa is invalid on this system
[2004/07/11 10:44:13, 3] smbd/error.c:error_packet(94)
error string = Invalid argument
[2004/07/11 10:44:13, 3] smbd/error.c:error_packet(118)
error packet at smbd/sesssetup.c(252) cmd=115 (SMBsesssetupX)
NT_STATUS_LOGON_FAILURE
I am completely confused now, as there is one machine where I can map to
\\woodward\myshare as RCOPRI\Jimmy Hoffa and it works completely as
expected. However, from other workstations I get the above error.
Sorry for not posting the smb.conf sooner.
Thanks.
-- Nick Majeran
-- smbd build options --
Build environment:
Built by: root@flexultra
Built on: Wed Jun 30 08:01:55 EDT 2004
Built using: gcc
Build host: SunOS flexultra 5.8 Generic_108528-29 sun4u sparc
SUNW,Ultra-5_10
SRCDIR: /tmp/samba-3.0.4/source
BUILDDIR: /tmp/samba-3.0.4/source
Paths:
SBINDIR: /usr/local/samba/sbin
BINDIR: /usr/local/samba/bin
SWATDIR: /usr/local/samba/swat
CONFIGFILE: /usr/local/samba/lib/smb.conf
LOGFILEBASE: /usr/local/samba/var
LMHOSTSFILE: /usr/local/samba/lib/lmhosts
LIBDIR: /usr/local/samba/lib
SHLIBEXT: so
LOCKDIR: /usr/local/samba/var/locks
PIDDIR: /usr/local/samba/var/locks
SMB_PASSWD_FILE: /usr/local/samba/private/smbpasswd
PRIVATE_DIR: /usr/local/samba/private
System Headers:
HAVE_SYS_ACL_H
HAVE_SYS_FCNTL_H
HAVE_SYS_FILIO_H
HAVE_SYS_IOCTL_H
HAVE_SYS_IPC_H
HAVE_SYS_MMAN_H
HAVE_SYS_MODE_H
HAVE_SYS_MOUNT_H
HAVE_SYS_PARAM_H
HAVE_SYS_RESOURCE_H
HAVE_SYS_SELECT_H
HAVE_SYS_SHM_H
HAVE_SYS_SOCKET_H
HAVE_SYS_SOCKIO_H
HAVE_SYS_STATFS_H
HAVE_SYS_STATVFS_H
HAVE_SYS_STAT_H
HAVE_SYS_SYSCALL_H
HAVE_SYS_SYSLOG_H
HAVE_SYS_TERMIO_H
HAVE_SYS_TIME_H
HAVE_SYS_TYPES_H
HAVE_SYS_UNISTD_H
HAVE_SYS_VFS_H
HAVE_SYS_WAIT_H
Headers:
HAVE_ARPA_INET_H
HAVE_COM_ERR_H
HAVE_CTYPE_H
HAVE_DIRENT_H
HAVE_DLFCN_H
HAVE_FCNTL_H
HAVE_GLOB_H
HAVE_GRP_H
HAVE_GSSAPI_GSSAPI_H
HAVE_GSSAPI_H
HAVE_INTTYPES_H
HAVE_KRB5_H
HAVE_LANGINFO_H
HAVE_LASTLOG_H
HAVE_LBER_H
HAVE_LDAP_H
HAVE_LIMITS_H
HAVE_LOCALE_H
HAVE_MEMORY_H
HAVE_NETINET_IN_SYSTM_H
HAVE_NETINET_IP_H
HAVE_NETINET_TCP_H
HAVE_NET_IF_H
HAVE_NSSWITCH_H
HAVE_NSS_COMMON_H
HAVE_POLL_H
HAVE_READLINE_HISTORY_H
HAVE_READLINE_READLINE_H
HAVE_RPCSVC_YPCLNT_H
HAVE_SECURITY_PAM_APPL_H
HAVE_SECURITY_PAM_MODULES_H
HAVE_SHADOW_H
HAVE_STDARG_H
HAVE_STDLIB_H
HAVE_STRINGS_H
HAVE_STRING_H
HAVE_STROPTS_H
HAVE_SYSLOG_H
HAVE_TERMIOS_H
HAVE_TERMIO_H
HAVE_UNISTD_H
HAVE_UTIME_H
UTMP Options:
HAVE_GETUTMPX
HAVE_UTMPX_H
HAVE_UTMP_H
HAVE_UT_UT_EXIT
HAVE_UT_UT_ID
HAVE_UT_UT_NAME
HAVE_UT_UT_PID
HAVE_UT_UT_TIME
HAVE_UT_UT_TYPE
HAVE_UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ATEXIT
HAVE_BER_SCANF
HAVE_BZERO
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_COPY_AUTHENTICATOR
HAVE_CREAT64
HAVE_CRYPT
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
H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LINE
HAVE_LIBRESOLV
HAVE_LIBROKEN
HAVE_LIBSEC
HAVE_LIBSENDFILE
HAVE_LIBSOCKET
HAVE_LINK
HAVE_LLSEEK
HAVE_LONGLONG
HAVE_LSEEK64
HAVE_LSTAT64
HAVE_MEMMOVE
HAVE_MEMSET
HAVE_MKNOD
HAVE_MKTIME
HAVE_MMAP
HAVE_NATIVE_ICONV
HAVE_NEW_LIBREADLINE
HAVE_NL_LANGINFO
HAVE_OPEN64
HAVE_PASSWD_PW_AGE
HAVE_PASSWD_PW_COMMENT
HAVE_PATHCONF
HAVE_PIPE
HAVE_POLL
HAVE_PREAD
HAVE_PREAD64
HAVE_PUTUTLINE
HAVE_PUTUTXLINE
HAVE_PWRITE
HAVE_PWRITE64
HAVE_RAND
HAVE_RANDOM
HAVE_READDIR64
HAVE_READLINK
HAVE_REALPATH
HAVE_RENAME
HAVE_ROKEN_GETADDRINFO_HOSTSPEC
HAVE_ROOT
HAVE_SECURE_MKSTEMP
HAVE_SELECT
HAVE_SENDFILEV
HAVE_SENDFILEV64
HAVE_SETBUFFER
HAVE_SETGROUPS
HAVE_SETLINEBUF
HAVE_SETLOCALE
HAVE_SETNETGRENT
HAVE_SETPGID
HAVE_SETSID
HAVE_SHMGET
HAVE_SIGACTION
HAVE_SIGPROCMASK
HAVE_SIGSET
HAVE_SIG_ATOMIC_T_TYPE
HAVE_SNPRINTF
HAVE_SNPRINTF_DECL
HAVE_SOCKLEN_T_TYPE
HAVE_SOLARIS_ACLS
HAVE_SRAND
HAVE_SRANDOM
HAVE_STAT64
HAVE_STAT_ST_BLKSIZE
HAVE_STAT_ST_BLOCKS
HAVE_STRCASECMP
HAVE_STRCHR
HAVE_STRDUP
HAVE_STRERROR
HAVE_STRFTIME
HAVE_STRLCAT
HAVE_STRLCPY
HAVE_STRPBRK
HAVE_STRTOUL
HAVE_STRUCT_DIRENT64
HAVE_STRUCT_FLOCK64
HAVE_STRUCT_STAT_ST_RDEV
HAVE_ST_RDEV
HAVE_SYMLINK
HAVE_SYSCALL
HAVE_SYSCONF
HAVE_SYSLOG
HAVE_UNIXSOCKET
HAVE_UPDWTMP
HAVE_UPDWTMPX
HAVE_USLEEP
HAVE_UTIMBUF
HAVE_UTIME
HAVE_UTIMES
HAVE_UX_UT_SYSLEN
HAVE_VA_COPY
HAVE_VOLATILE
HAVE_VSNPRINTF
HAVE_VSNPRINTF_DECL
HAVE_VSYSLOG
HAVE_WAITPID
HAVE_YP_GET_DEFAULT_DOMAIN
HAVE__ACL
HAVE__CHDIR
HAVE__CLOSE
HAVE__CLOSEDIR
HAVE__DUP
HAVE__DUP2
HAVE__ET_LIST
HAVE__FACL
HAVE__FCHDIR
HAVE__FCNTL
HAVE__FORK
HAVE__FSTAT
HAVE__FSTAT64
HAVE__GETCWD
HAVE__GETDENTS
HAVE__LLSEEK
HAVE__LSEEK
HAVE__LSTAT
HAVE__LSTAT64
HAVE__OPEN
HAVE__OPEN64
HAVE__OPENDIR
HAVE__PREAD
HAVE__PREAD64
HAVE__PWRITE
HAVE__PWRITE64
HAVE__READ
HAVE__READDIR
HAVE__READDIR64
HAVE__SEEKDIR
HAVE__STAT
HAVE__STAT64
HAVE__TELLDIR
HAVE__WRITE
--with Options:
WITH_ADS
WITH_LDAP_SAMCONFIG
WITH_PAM
WITH_SENDFILE
WITH_UTMP
WITH_WINBIND
Build Options:
BROKEN_GETGRNAM
COMPILER_SUPPORTS_LL
DEFAULT_DISPLAY_CHARSET
DEFAULT_DOS_CHARSET
DEFAULT_UNIX_CHARSET
LDAP_SET_REBIND_PROC_ARGS
PACKAGE_BUGREPORT
PACKAGE_NAME
PACKAGE_STRING
PACKAGE_TARNAME
PACKAGE_VERSION
REPLACE_GETPASS
RETSIGTYPE
SEEKDIR_RETURNS_VOID
SIZEOF_INO_T
SIZEOF_INT
SIZEOF_LONG
SIZEOF_OFF_T
SIZEOF_SHORT
SOLARIS_SENDFILE_API
STAT_STATVFS64
STAT_ST_BLOCKSIZE
STDC_HEADERS
STRING_STATIC_MODULES
SUNOS5
SYSCONF_SC_NGROUPS_MAX
SYSV
TIME_WITH_SYS_TIME
USE_SETREUID
WITH_ADS
WITH_LDAP_SAMCONFIG
WITH_PAM
WITH_SENDFILE
WITH_WINBIND
WORDS_BIGENDIAN
_ALIGNMENT_REQUIRED
_FILE_OFFSET_BITS
_LARGEFILE64_SOURCE
_MAX_ALIGNMENT
charset_CP437_init
charset_CP850_init
loff_t
static_init_auth
static_init_charset
static_init_idmap
static_init_pdb
static_init_rpc
static_init_vfs
vfs_audit_init
vfs_cap_init
vfs_default_quota_init
vfs_expand_msdfs_init
vfs_extd_audit_init
vfs_fake_perms_init
vfs_netatalk_init
vfs_readonly_init
vfs_recycle_init
vfs_shadow_copy_init
Type sizes:
sizeof(char): 1
sizeof(int): 4
sizeof(long): 4
sizeof(uint8): 1
sizeof(uint16): 2
sizeof(uint32): 4
sizeof(short): 2
sizeof(void*): 4
Builtin modules:
pdb_ldap pdb_smbpasswd pdb_tdbsam pdb_guest rpc_lsa rpc_reg rpc_lsa_ds
rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss rpc_samr idmap_ldap
idmap_tdb auth_rhosts auth_sam auth_unix auth_winbind auth_server
auth_domain auth_builtin