Displaying 2 results from an estimated 2 matches for "remote_password_change".
2000 Feb 10
0
Errors from remote_password_change()
Greetings,
This may be a bit skewed from the normal discussion here.
I am attempting to use the remote_password_change() function from
passchange.o (a libsmb.a sure would be a nice addition to the samba
distribution...) in a standalone application. I note that, when called out
of smbpasswd, I can change a password on a remote NT server just fine.
When run from a standalone app, however, the password change always...
2004 Apr 09
0
why do occur seg-fault at uicode_to_unix_char() - using remote_change_password function???
...e_password function and try it but seg-fault whenever
call unicode_to_unix_char() function.
blow my code
int setsambapassword( const char *remotehost, char *username, const char
*smboldpassword, char *password)
{
char err[1024];
int ret;
memset( &err, '\0', sizeof(err));
ret = remote_password_change(remotehost, username, smboldpassword,
password, err, sizeof(err));
if( *err)
fprintf(stderr, err);
return ret;
}
and compiling with follow option
gcc -o testsamba testsamba.c -lsmbclinet /usr/lib/libsmbclinet.a -g
and run using gdb
gdb ./testsamba
gdb> run
Program received signal SIGSE...