Ну не выходит что-то каменный цветок..
Самба на Солярисе 8 и Солярисе 9 работает...
Что не так с МАКом - недогоняю..
Вот такой у меня конфиг....
По идее - это просто standalone машина.
cat /etc/smb.conf
macsmbhost:~ root# cat /etc/smb.conf
[global]
workgroup = DOMAIN
netbios name = macsmbhost
preferred master = no
domain master = no
wins support = no
domain logons = no
local master = no
encrypt passwords = yes
security = user
null passwords = yes
log level = 3 passdb:5 auth:10
#LDAP-related setup
passdb backend = ldapsam:ldap://alien.domain.com:389
ldap ssl = no
ldap admin dn = cn=Manager,dc=domain,dc=com
ldap suffix = dc=domain,dc=com
ldap machine suffix = ou=Computers
ldap user suffix = ou=People
ldap group suffix = ou=Group
ldap ssl = no
ldap passwd sync = yes
ldap filter = (&(objectclass=sambaSamAccount) (uid=%u))
ldap delete dn = no
logon home =
use spnego = no
hosts allow =172.27. 192.168.
[homes]
read only = no
comment = User Home Directories
browseable = no
[Groups]
comment = macosx
inherit permissions = no
path = /Groups
directory mask = 0755
map archive = no
guest ok = 1
read only = no
create mask = 0644
[Public]
comment = macosx
inherit permissions = no
path = /Shared Items/Public
directory mask = 0755
map archive = no
guest ok = 1
read only = no
create mask = 0644
[Users]
comment = macosx
inherit permissions = no
path = /Users
directory mask = 0755
map archive = no
guest ok = 1
read only = no
create mask = 0644
[Data]
oplocks = 0
map archive = no
path = /Volumes/Data
read only = no
inherit permissions = 0
strict locking = 0
comment = macosx
create mask = 6440
guest ok = 0
directory mask = 7550
[printers]
printable = yes
path = /tmp
--------------------
Вот что происходить при попытке выполнить команду c Windows 2000 (hostname: winxphost) -
"net use \\macsmbhost.domain.com /user:user1 password1"
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_context_list(604)
Trying to load: ldapsam:ldap://alien.domain.com:389
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend ldapsam
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'ldapsam'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend ldapsam_compat
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'ldapsam_compat'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend smbpasswd
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'smbpasswd'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend tdbsam
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'tdbsam'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend guest
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'guest'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(500)
Attempting to find an passdb backend to match ldapsam:ldap://alien.domain.com:389 (ldapsam)
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(521)
Found pdb backend ldapsam
[2004/10/11 12:13:04, 2] /SourceCache/samba/samba-56/samba/source/lib/smbldap.c:smbldap_search_domain_info(1331)
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=macsmbhost))]
[2004/10/11 12:13:04, 2] /SourceCache/samba/samba-56/samba/source/lib/smbldap.c:smbldap_open_connection(626)
smbldap_open_connection: connection opened
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/lib/smbldap.c:smbldap_connect_system(793)
ldap_connect_system: succesful connection to the LDAP server
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(524)
pdb backend ldapsam:ldap://alien.domain.com:389 has a valid init
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(500)
Attempting to find an passdb backend to match guest (guest)
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(521)
Found pdb backend guest
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/passdb/pdb_interface.c:make_pdb_methods_name(524)
pdb backend guest has a valid init
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/oplock.c:init_oplocks(1226)
open_oplock_ipc: opening loopback UDP socket.
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/oplock.c:init_oplocks(1257)
open_oplock ipc: pid = 1154, global_oplock_port = 52920
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/lib/access.c:check_access(313)
check_access: no hostnames in host allow/deny list.
[2004/10/11 12:13:04, 2] /SourceCache/samba/samba-56/samba/source/lib/access.c:check_access(324)
Allowed connection from (192.168.149.126)
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:process_smb(890)
Transaction 0 of length 72
[2004/10/11 12:13:04, 2] /SourceCache/samba/samba-56/samba/source/smbd/reply.c:reply_special(105)
netbios connect: name1=macsmbhost name2=win2khost
[2004/10/11 12:13:04, 2] /SourceCache/samba/samba-56/samba/source/smbd/reply.c:reply_special(112)
netbios connect: local=macsmbhost remote=win2khost, name type = 0
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:process_smb(890)
Transaction 1 of length 137
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:switch_message(685)
switch message SMBnegprot (pid 1154)
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [PC NETWORK PROGRAM 1.0]
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [LANMAN1.0]
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [Windows for Workgroups 3.1a]
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [LM1.2X002]
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [LANMAN2.1]
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(455)
Requested protocol [NT LM 0.12]
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:make_auth_context_subsystem(506)
Using specified auth order
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend rhosts
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'rhosts'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend hostsequiv
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'hostsequiv'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend sam
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'sam'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend sam_ignoredomain
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'sam_ignoredomain'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend unix
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'unix'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend winbind
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'winbind'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend smbserver
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'smbserver'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend trustdomain
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'trustdomain'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend ntdomain
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'ntdomain'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(45)
Attempting to register auth backend guest
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:smb_register_auth(57)
Successfully added auth method 'guest'
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:load_auth_module(384)
load_auth_module: Attempting to find an auth method to match guest
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:load_auth_module(409)
load_auth_module: auth method guest has a valid init
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:get_ntlm_challenge(95)
auth_get_challenge: module guest did not want to specify a challenge
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:get_ntlm_challenge(135)
auth_context challenge created by random
[2004/10/11 12:13:04, 5] /SourceCache/samba/samba-56/samba/source/auth/auth.c:get_ntlm_challenge(136)
challenge is:
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_nt1(323)
not using SPNEGO
[2004/10/11 12:13:04, 3] /SourceCache/samba/samba-56/samba/source/smbd/negprot.c:reply_negprot(532)
Selected protocol NT LM 0.12
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:process_smb(890)
Transaction 2 of length 292
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:switch_message(685)
switch message SMBsesssetupX (pid 1154)
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/sesssetup.c:reply_sesssetup_and_X(638)
wct=13 flg2=0xc807
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/sesssetup.c:reply_sesssetup_and_X(772)
Domain=[win2khost] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0] PrimaryDomain=[]
[2004/10/11 12:13:05, 2] /SourceCache/samba/samba-56/samba/source/smbd/sesssetup.c:setup_new_vc_session(591)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/sesssetup.c:reply_sesssetup_and_X(787)
sesssetupX:name=[win2khost]\[user1]@[win2khost]
[2004/10/11 12:13:05, 5] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:make_user_info_map(216)
make_user_info_map: Mapping user [win2khost]\[user1] from workstation [win2khost]
[2004/10/11 12:13:05, 5] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:make_user_info(132)
attempting to make a user_info for user1 (user1)
[2004/10/11 12:13:05, 5] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:make_user_info(142)
making strings for user1's user_info struct
[2004/10/11 12:13:05, 5] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:make_user_info(184)
making blobs for user1's user_info struct
[2004/10/11 12:13:05, 10] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:make_user_info(193)
made an encrypted user_info for user1 (user1)
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(219)
check_ntlm_password: Checking password for unmapped user [win2khost]\[user1]@[win2khost] with the new password interface
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(222)
check_ntlm_password: mapped user is: [macsmbhost]\[user1]@[win2khost]
[2004/10/11 12:13:05, 10] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(231)
check_ntlm_password: auth_context challenge created by random
[2004/10/11 12:13:05, 10] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(233)
challenge is:
[2004/10/11 12:13:05, 10] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(259)
check_ntlm_password: guest had nothing to say
[2004/10/11 12:13:05, 2] /SourceCache/samba/samba-56/samba/source/auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [user1] -> [user1] FAILED with error NT_STATUS_NO_SUCH_USER
[2004/10/11 12:13:05, 5] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:free_user_info(1278)
attempting to free (and zero) a user_info structure
[2004/10/11 12:13:05, 10] /SourceCache/samba/samba-56/samba/source/auth/auth_util.c:free_user_info(1281)
structure was created for user1
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/error.c:error_packet(94)
error string = No such file or directory
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/error.c:error_packet(118)
error packet at /SourceCache/samba/samba-56/samba/source/smbd/sesssetup.c(870) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/process.c:timeout_processing(1104)
timeout_processing: End of file from client (client has disconnected).
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/10/11 12:13:05, 2] /SourceCache/samba/samba-56/samba/source/smbd/server.c:exit_server(558)
Closing connections
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/connection.c:yield_connection(69)
Yielding connection to
[2004/10/11 12:13:05, 3] /SourceCache/samba/samba-56/samba/source/smbd/server.c:exit_server(601)
Server exit (normal exit)