Displaying 2 results from an estimated 2 matches for "nt_status_is_err".
2007 Jan 19
1
Possible bug on net rpc trustdom establish
...in rpc_trustdom ()
#7 0x3c6d8 in net_run_function ()
#8 0x51188 in net_rpc ()
#9 0x3c6d8 in net_run_function ()
#10 0x3e15c in main ()
Look at the code in rpc_trustdom_establish() call in utils/net_rpc.c.
nt_status = connect_to_ipc_anonymous(&cli, &server_ip,
(char*)pdc_name);
if (NT_STATUS_IS_ERR(nt_status)) {
DEBUG(0, ("Couldn't connect to domain %s controller.
Error was %s.\n",
domain_name, nt_errstr(nt_status)));
}
/*
* Use NetServerEnum2 to make sure we're talking to a proper
server
*/
if (!cli_get_pdc_name(cli, domain_name, (char*)pdc_name)) {
DEBUG(...
2007 Jun 06
3
string overflow in rpcclient add "printer" driver command
Hello,
I get the folowing error msg in rpcclient -c 'adddriver' command:
ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver "Windows NT x86" "My Driver Name 001:aaa]
Printer Driver My Driver Name 001 successfully installed.
My command is like this:
rpcclient MYSRV -s /etc/samba/smb.conf -A auth.txt -c 'adddriver "Windows NT x86" "My