search for: cli_initialise

Displaying 13 results from an estimated 13 matches for "cli_initialise".

2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
..._tok(fstring tok); static int cmd_help(void); +static int connect_timeout = 20*1000; + /* 30 second timeout on most commands */ #define CLIENT_TIMEOUT (30*1000) #define SHORT_TIMEOUT (5*1000) @@ -2533,7 +2535,9 @@ if (have_ip) ip = dest_ip; /* have to open a new connection */ - if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) != port) || + + if (!(c=cli_initialise(NULL)) || !(c->timeout = connect_timeout) || + (cli_set_port(c, port) != port) || !cli_connect(c, server_n, &ip)) { d_printf("Connection to %s failed\n", server_n); return NULL...
2000 Jul 17
0
[PATCH] `smbclient -M' ignores `-p port'
...HEAD and TNG all have this bug. > > Peter > > --- samba-2.0.x/source/client/client.c~ Mon Jul 3 01:15:21 2000 > +++ samba-2.0.x/source/client/client.c Sun Jul 16 15:33:34 2000 > @@ -2164,7 +2164,8 @@ > ip = ipzero; > if (have_ip) ip = dest_ip; > > - if (!(cli=cli_initialise(NULL)) || !cli_connect(cli, desthost, &ip)) { > + if (!(cli=cli_initialise(NULL)) || !cli_set_port(cli, port) || > + !cli_connect(cli, desthost, &ip)) { > DEBUG(0,("Connection to %s failed\n", desthost)); > return 1; > }
2004 Dec 16
1
Running "net join" from web page
...e a linux box join a windows domain by calling "NET JOIN" from php/perl. The join works perfecly when used from the command line. I made a perl script that runs the actual command, set-uid it to root and ran it from php. Then i got this error: [2004/12/16 14:33:24, 0] libsmb/clientgen.c:cli_initialise(251) libsmb based programs must *NOT* be setuid root. How can i make "net join" run from a webpage/perl setup? Have anybody else tried this? BR and thanks, Thomas.
2000 Jul 16
1
"smbclient -p <port>" appears to be broken in Samba 2.x
I posted this problem as a question to this list a while ago and got no reply. I submitted it as a bug, but found that "samba-bugs@samba.org", no longer accepts bug reports, even though the web page says to send them to that address. Wondering if the option had been intentionally discontinuted without updating the man page, I made a quick check of the source and found that the "-p
2009 Dec 20
2
Samba + Vscan
...File `global/vscan-message.po' does not exist.* * Must remake target `global/vscan-message.po'.* *Compiling global/vscan-message.c with -fPIC* *global/vscan-message.c: In function ?vscan_send_warning_message?:* *global/vscan-message.c:82: error: too many arguments to function ?cli_initialise?* *global/vscan-message.c:82: error: wrong type argument to unary exclamation mark* *make: *** [global/vscan-message.po] Error 1* *Somebody know about this message error ? How I can resolve this problem ? * *Plus information * The process *configure * run without any problems ./configure --with...
2009 Apr 01
1
[Announce] Samba 3.3.3 Available for Download
...GNU ld version. o Volker Lendecke <vl@samba.org> * BUG 6097: Fix smbd segfault. * BUG 6130: Don''t crash in winbindd_rpc lookup_groupmem() on unmapped members. * BUG 6139: Add missing whitespace in mount.cifs error message. * Fix a malloc/talloc mismatch when cli_initialise() fails. * Fix a valgrind error. * Speed up "net conf list". * Add sorted subkey cache. * Use StrCaseCmp in the dirsort module. * Document the dirsort module. * Fix the build on HP/UX. * Disable dns_sd by default. * Add avahi detection to configure. * A...
2009 Apr 01
1
[Announce] Samba 3.3.3 Available for Download
...GNU ld version. o Volker Lendecke <vl@samba.org> * BUG 6097: Fix smbd segfault. * BUG 6130: Don''t crash in winbindd_rpc lookup_groupmem() on unmapped members. * BUG 6139: Add missing whitespace in mount.cifs error message. * Fix a malloc/talloc mismatch when cli_initialise() fails. * Fix a valgrind error. * Speed up "net conf list". * Add sorted subkey cache. * Use StrCaseCmp in the dirsort module. * Document the dirsort module. * Fix the build on HP/UX. * Disable dns_sd by default. * Add avahi detection to configure. * A...
2000 Apr 20
0
Solaris upgrade (Samba panic)
...e error in the | log ... That's a failure in --- BOOL attempt_netbios_session_request(struct cli_state *cli, char *srchost, char *desthost, struct in_addr *pdest_ip) { --- The line number points to the DEBUG statement in: ---- if (!nmb_name_equal(&called, &smbservername) || !cli_initialise(cli) || !cli_connect(cli, desthost, pdest_ip) || !cli_session_request(cli, &calling, &called)) { DEBUG(0,("attempt_netbios_session_request: %s rejected the session. Error was : %s.\n", desthost, cli_errstr(cli))); cli_shutdown(cli); re...
2009 Mar 31
1
[Announce] Samba 3.2.9 Maintenance Release Available
...f registry keys. * Fix a O(n^2) algorithm in regdb_fetch_keys(). * Fix an uninitialized variable warning. * Fix a valgrind error / segfault in dns_register_smbd(). * Don''t log NDR_PRINT_DEBUG at level 0, this always ends up in syslog. * Fix a malloc/talloc mismatch when cli_initialise() fails. * Fix a valgrind error. * Fix two memleaks in the encryption code. * Fix gcc 4.4 compile warning. * Fix a scary "fill_share_mode_lock failed" message. o Derrell Lipman <derrell@dworkin.(none)> * BUG 6228: Fix SMBC_open_ctx failure due to path resolve...
2009 Mar 31
1
[Announce] Samba 3.2.9 Maintenance Release Available
...f registry keys. * Fix a O(n^2) algorithm in regdb_fetch_keys(). * Fix an uninitialized variable warning. * Fix a valgrind error / segfault in dns_register_smbd(). * Don''t log NDR_PRINT_DEBUG at level 0, this always ends up in syslog. * Fix a malloc/talloc mismatch when cli_initialise() fails. * Fix a valgrind error. * Fix two memleaks in the encryption code. * Fix gcc 4.4 compile warning. * Fix a scary "fill_share_mode_lock failed" message. o Derrell Lipman <derrell@dworkin.(none)> * BUG 6228: Fix SMBC_open_ctx failure due to path resolve...
2000 Jan 05
1
Signal 11 in attempt_netbios_session_request
> I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information: > > [2000/01/04 17:54:42, 3] libsmb/namequery.c:resolve_lmhosts(566) > resolve_lmhosts: Attempting lmhosts lookup for name > NTWEB2.AIS.MSU.EDU<0x20> > [2000/01/04
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...ing password; @@ -73,7 +67,7 @@ signal( SIGTERM, exit_parent ); if ((child_pid = fork()) < 0) { - fprintf(stderr,"could not fork\n"); + DEBUG(0,("could not fork\n")); } if (child_pid > 0) { @@ -151,12 +145,12 @@ /* have to open a new connection */ if (!(c=cli_initialise(NULL)) || (cli_set_port(c, smb_port) == 0) || !cli_connect(c, server_n, &ip)) { - fprintf(stderr,"Connection to %s failed\n", server_n); + DEBUG(0,("Connection to %s failed\n", server_n)); return NULL; } if (!cli_session_request(c, &calling, &called)...
2004 Oct 21
0
compile errors samba 3.0.7 vfs
...global/vscan-message.po(.text+0x22b): undefined reference to `dbgtext' global/vscan-message.po(.text+0x248): undefined reference to `make_nmb_name' global/vscan-message.po(.text+0x268): undefined reference to `make_nmb_name' global/vscan-message.po(.text+0x275): undefined reference to `cli_initialise' global/vscan-message.po(.text+0x298): undefined reference to `cli_set_port' global/vscan-message.po(.text+0x2b0): undefined reference to `cli_connect' global/vscan-message.po(.text+0x2bd): undefined reference to `DEBUGLEVEL_CLASS' global/vscan-message.po(.text+0x2df): undefined re...