Displaying 2 results from an estimated 2 matches for "popt_common_credentials_callback".
2003 Sep 20
1
samba-3.0.0rc4: -P common option handler can't open secrets.tdb
It appears that there is some setup missing for handling the -P
option to commands (via popt_common_credentials_callback()).
I was trying to use the example file examples/printing/smbprint.sysv
which suggested using the "-P" option to smbclient. I am always
getting an error that "/secrets.tdb" can't be opened.
I think that what is mis-ordered is that secrets_init() is called
before smb.conf...
2015 Feb 02
1
Can login with a bogus username which ends with a "/" or a "\"
...workgroup = user2;
}
I'm guessing that this was intended for a "WORKSPACE/USERNAME" construct and not for just "USERNAME/". We use smbclient to authenticate users, for access to services on our machine, so letting bogus users logon, is not a good thing.
In popt_common_credentials_callback() I added the code:
case 'U':
{
char *lp;
char *puser = SMB_STRDUP(arg);
if ((lp=strchr_m(puser,&...