Latest CVS version doesn't seem to work

Bill Nugent whn at topelo.lopi.com
Sun Jan 31 15:41:12 GMT 1999


On Fri, 29 Jan 1999, Luke Kenneth Casson Leighton wrote:

>On Sat, 30 Jan 1999, Greg Dickie wrote: 
>
>> Don't think it's just my OS (IRIX 6.5.2f) but I'll check 
>> 
>> Compiling rpc_server/srv_svcctl.c 
>> "rpc_server/srv_svcctl.c", line 96: error(1565): struct 
>> "q_svc_open_service_info" has no field "uni_srv_name" 
>> fstrcpy(name, unistr2_to_str(&q_u->uni_srv_name)); 
>> ^ 
>> 
>> 1 error detected in the compilation of "rpc_server/srv_svcctl.c". 
>
>fixed. thanx greg.

Howdy,

I ran into the same problem as Greg and it now compiles for me under 
RedHat 5.2 - thank you!  I'm following the steps in Samba NT Domain FAQ 
but I am able to verify proper operation as suggested in the second 
bullet in section 2.2.

I'm running through the tests in DIAGNOIS.txt and it fails on Test 7 - 
could something else be broken?  I've used basically the same smb.conf 
file with samba-2.0.0-9990115.i386.rpm and do not have this problem (I've 
did a straight configure so it would install into /usr/local/samba thus 
allowing me to keep a working version, I copied /etc/smb.conf to 
/usr/local/samba/lib/smb.conf, made path changes and in general compared 
to the two files for other differences.  /usr/local/samba/bin/testparm is 
happy and all the output looks good to me.  I've also created the 
smb.conf from the 2.1 pre-alpha template from scratch).

Test 7 is where things fall apart.  "smbclient '\\localhost\tmp' -U%" 
works but "smbclient '\\localhost\tmp' -Ujoe" fails (joe is a valid user 
that works and I copied /etc/smbpasswd to /usr/local/samba/private/smbpass
wd - I've also tried to start over but get a segmentation fault).  I'm 
also not able to get smbpasswd to work as well.

I've set the debug level to 3 and this is what the smbclient returns:

/usr/local/samba# bin/smbclient '\\localhost\tmp' -Ujoe
doing parameter workgroup = DHARA
doing parameter server string = Samba Server %v on %h
doing parameter hosts allow = 192.168.1. 127. 208.3.201.1 199.92.203.2
doing parameter log file = /usr/local/samba/var/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter socket options = TCP_NODELAY
doing parameter interfaces = 192.168.1.20/24 199.92.203.2/24 
208.3.201.1/24
doing parameter logon path = \\%L\Profiles\%U
doing parameter wins support = yes
doing parameter wins proxy = yes
doing parameter dns proxy = no
pm_process() returned Yes
Added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Added interface ip=199.92.203.2 bcast=199.92.203.255 nmask=255.255.255.0
Added interface ip=208.3.201.1 bcast=208.3.201.255 nmask=255.255.255.0
Client started (version 2.1.0-prealpha).
resolve_name: Attempting lmhosts lookup for name localhost
resolve_name: Attempting host lookup for name localhost
Connecting to 127.0.0.1 at port 139
Password: 
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password 
pair in a Tree Connect or Session Setup are invalid.)

And this is what is in /usr/local/samba/var/log.topelo - please note that 
the username has a bunch of characters prepended on it - could this be 
the problem?

[1999/01/31 09:44:46, 3] smbd/process.c:process_smb(565)
  Transaction 1 of length 168
[1999/01/31 09:44:46, 3] smbd/process.c:switch_message(402)
  switch message SMBnegprot (pid 18831)
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [LANMAN1.0]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [LM1.2X002]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(332)
  Requested protocol [Samba]
[1999/01/31 09:44:46, 3] smbd/negprot.c:reply_negprot(409)
  Selected protocol NT LANMAN 1.0
[1999/01/31 09:44:48, 3] smbd/process.c:process_smb(565)
  Transaction 2 of length 98
[1999/01/31 09:44:48, 3] smbd/process.c:switch_message(402)
  switch message SMBsesssetupX (pid 18831)
[1999/01/31 09:44:48, 3] smbd/reply.c:reply_sesssetup_and_X(624)
  Domain=[DHARA]  NativeOS=[Unix] NativeLanMan=[Samba]
[1999/01/31 09:44:48, 3] smbd/reply.c:reply_sesssetup_and_X(628)
  sesssetupX:name=[<8C><8C> <EF>"^^JOE]
[1999/01/31 09:44:48, 3] passdb/pass_check.c:pass_check(783)
  Couldn't find user <8C><8C> <EF>"^^joe
[1999/01/31 09:44:48, 3] smbd/error.c:error_packet(138)
  error packet at line 720 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[1999/01/31 09:44:48, 3] smbd/error.c:error_packet(143)
  error string = No such file or directory
[1999/01/31 09:44:48, 3] smbd/process.c:smbd_process(806)
  end of file from client
[1999/01/31 09:44:48, 2] smbd/server.c:exit_server(406)
  Closing connections
[1999/01/31 09:44:48, 3] smbd/server.c:exit_server(431)
  Server exit (normal exit)

smbpasswd gives this (nothing meaningful to me in any of the log files):

/usr/local/samba# bin/smbpasswd joe
doing parameter workgroup = DHARA
doing parameter server string = Samba Server %v on %h
doing parameter hosts allow = 192.168.1. 127. 208.3.201.1 199.92.203.2
doing parameter log file = /usr/local/samba/var/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter socket options = TCP_NODELAY
doing parameter interfaces = 192.168.1.20/24 199.92.203.2/24 
208.3.201.1/24
doing parameter logon path = \\%L\Profiles\%U
doing parameter wins support = yes
doing parameter wins proxy = yes
doing parameter dns proxy = no
pm_process() returned Yes
Added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Added interface ip=199.92.203.2 bcast=199.92.203.255 nmask=255.255.255.0
Added interface ip=208.3.201.1 bcast=208.3.201.255 nmask=255.255.255.0
resolve_name: Attempting lmhosts lookup for name TOPELO
resolve_name: Attempting host lookup for name TOPELO
Connecting to 208.3.201.1 at port 139
LSA_QUERYINFOPOLICY (level 3): domain:DHARA  domain sid:S-0-0
LSA_QUERYINFOPOLICY (level 5): domain:  domain sid:S-1-5-21-1983925945-340
9261689-365938540
LSA Query Info Policy
Domain Member     - Domain: DHARA SID: S-0-0
Domain Controller - Domain:  SID: S-1-5-21-1983925945-3409261689-365938540
New SMB password:
Retype new SMB password:
Failed to find entry for user joe.
Failed to change password entry for joe

When I try to add a user I get a segmentation fault after typing in the 
new SMB password.

Any help would be appreciated.

	TIA,
	Bill



More information about the samba-ntdom mailing list