samba-2.2.0-alpha0 problem with rpcclient only using smbpasswd

Jeremy Allison jeremy at valinux.com
Thu Nov 16 18:15:26 GMT 2000


"SANDFORT,PAT (HP-Boise,ex1)" wrote:
> 
> Hi,
> 
> I discovered a problem with 2.2.0-alpha0 rpcclient while trying to use
> the imprints tool.  The authentication only uses users setup in the
> smbpasswd file.  Following is the output of diff -u for the changes that
> I made to enable authentication to include local users via /etc/passwd:
> 
> diff -u printing/nt_printing.c.new printing/nt_printing.c.orig
> 532d531
> <       struct passwd *pass;
> 556c555
> <               DEBUG(1,("move_driver_to_download_area: Unable to get
> smbpasswd entry for uid %u.  Trying local passwd entry.\n",
> ---
> >               DEBUG(0,("move_driver_to_download_area: Unable to get
> smbpasswd entry for uid %u\n",
> 558,565c557,558
> <               pass = sys_getpwuid(user->uid);
> <               if(pass == NULL) {
> <                       DEBUG(0,("move_driver_to_download_area: Unable to
> get smbpasswd or passwd entry for uid %u\n",
> <                               (unsigned int)user->uid ));
> <                       unbecome_root();
> <                       return False;
> <               }
> <               fstrcpy(user_name, pass->pw_name );
> ---
> >               unbecome_root();
> >               return False;
> 567,568d559
> <       else
> <               fstrcpy(user_name, smb_pass->smb_name );
> 571a563
> >       fstrcpy(user_name, smb_pass->smb_name );

Thanks for this patch Pat - I believe I have already fixed
this in the 2.2 and HEAD branches.

This fix will be in the next alpha.

Regards,

	Jeremy Allison,
	Samba Team.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list