How do you do !!!
Compile samba-2.2.7a with -with-winbind -with-acl-support, has adjusted
smb.conf
[global]
netbios name = server
workgroup = sgtp
server string = Samba Server
max log size = 50
security = domain
wins support = yes
password server = DOM MULT *
encrypt passwords = yes
log level = 3
log file = /usr/local/samba/var/log.%m
client code page = 866
character set = KOI8-R
smb passwd file = /usr/local/samba/private/smbpasswd
username map = /usr/local/samba/lib/smbusers
winbind uid = 10000-65000
winbind gid = 10000-65000
winbind separator = +
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%D/%U
template shell = /bin/sh
winbind cache time = 5
has prescribed in nsswitch.conf:
passwd: files winbind
group: files winbind
shadow: files
execute ./smbpasswd -j SGTP -r dom -Uadmin - all ok.
Now when entering from the other machines domain enter as nobody, rather then
as user, received with controller domain (domain on Win2000Server), in ravine
file winbindd.
For test execute: cd ~sgtp+dgk (~domain+user) - error.
[2003/03/04 10:33:30, 3] nsswitch/winbindd_cm.c:cm_get_dc_name(163)
cm_get_dc_name: Returning DC DOM (192.168.1.5) for domain SGTP
[2003/03/04 10:33:30, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(194)
IPC$ connections done anonymously
[2003/03/04 10:33:30, 3] libsmb/cliconnect.c:cli_full_connection(974)
Connecting to host=DOM share=IPC$
[2003/03/04 10:33:30, 3] lib/util_sock.c:open_socket_out(845)
Connecting to 192.168.1.5 at port 445
[2003/03/04 10:33:31, 1] nsswitch/winbindd_util.c:init_domain_list(148)
Added domain SGTP (S-1-5-21-746137067-1767777339-682003330)
[2003/03/04 10:33:31, 1] nsswitch/winbindd_util.c:init_domain_list(152)
getting trusted domain list
[2003/03/04 10:33:37, 3] nsswitch/winbindd_user.c:winbindd_endpwent(314)
[ 4381]: endpwent
[2003/03/04 10:33:37, 3] nsswitch/winbindd_user.c:winbindd_endpwent(314)
[ 4381]: endpwent
[2003/03/04 10:33:45, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(104)
[ 3326]: getpwnam sgtp+dgk
[2003/03/04 10:33:45, 3] libsmb/namequery.c:resolve_lmhosts(768)
resolve_lmhosts: Attempting lmhosts lookup for name SGTP<0x1b>
[2003/03/04 10:33:45, 3] libsmb/namequery.c:resolve_wins(709)
resolve_wins: Attempting wins lookup for name SGTP<0x1b>
[2003/03/04 10:33:45, 3] libsmb/namequery.c:resolve_wins(727)
resolve_wins: WINS server == <192.168.1.5>
[2003/03/04 10:33:45, 3] lib/util_sock.c:open_socket_in(813)
bind succeeded on port 0
[2003/03/04 10:33:45, 2] libsmb/namequery.c:name_query(421)
Got a positive name query response from 192.168.1.5 ( 192.168.1.5 )
[2003/03/04 10:33:45, 3] lib/util_sock.c:open_socket_in(813)
bind succeeded on port 0
[2003/03/04 10:33:45, 3] nsswitch/winbindd_cm.c:cm_get_dc_name(163)
cm_get_dc_name: Returning DC DOM (192.168.1.5) for domain SGTP
[2003/03/04 10:33:45, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(194)
IPC$ connections done anonymously
[2003/03/04 10:33:45, 3] libsmb/cliconnect.c:cli_full_connection(974)
Connecting to host=DOM share=IPC$
[2003/03/04 10:33:45, 3] lib/util_sock.c:open_socket_out(845)
Connecting to 192.168.1.5 at port 445
[2003/03/04 10:33:46, 1] nsswitch/winbindd_user.c:winbindd_getpwnam(147)
error getting user info for user '[SGTP]\[dgk]'
[2003/03/04 10:33:46, 3] nsswitch/winbindd_user.c:winbindd_endpwent(314)
[ 3326]: endpwent
what see - can not get information of the user? Where error?
Addons information:
[root@bene bin]# ./wbinfo -p
'ping' to winbindd succeeded
[root@bene bin]# ./wbinfo -a dgk%pass
plaintext password authentication succeeded
[root@bene bin]# ./wbinfo -u
0xc0000017
root@bene bin]# ./wbinfo -g
0xc0000001
[root@bene bin]# ./wbinfo -n dgk
S-1-5-21-746137067-1767777339-682003330-1127 1
[root@bene bin]# ./wbinfo -s S-1-5-21-746137067-1767777339-682003330-1127
SGTP+dgk 1