2.1alpha feature in smbclient - USER and LOGNAME env variables

Dave.Stevenson at durham.ac.uk Dave.Stevenson at durham.ac.uk
Sat Oct 2 12:12:11 GMT 1999


Symptom

smbclient -L hostname -U user%password

works fine, BUT

USER=user%password
smbclient -L hostname

fails unless GUEST access is OK


Reason

when getting user ( and password ) from variables the flag
explicit_user=True;
 
should be set and isn't ( in both USER and LOGNAME ) otherwise username is nulled out
by the -L option in the command line switch ladder. setting username  explicitly
should include setting it in environment shouldn't it?


Only a "ley" hacker, so needs checking by samba brethren but putting it in works for me :-)
please correct me if mistaken.


More information about the samba-ntdom mailing list