samba-2.2.0-alpha0 problem with rpcclient only using smbpasswd
SANDFORT,PAT (HP-Boise,ex1)
pat_sandfort at hp.com
Thu Nov 16 17:27:25 GMT 2000
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 );
Pat Sandfort
HP - LaserJet R&D
More information about the samba-technical
mailing list