search for: smbc_init

Displaying 11 results from an estimated 11 matches for "smbc_init".

2002 Nov 28
0
problem with smbc_init in libsmbclient
Hi, I have attached a very simple c program, that first does a smbc_init and then a smbc_opendir. The problem: smbc_init return an error (No such file or directory) and then i get a segmentation fault. I don't know what possibly could be the problem. Maybe some of you guys have an idea. I think i have libsmbclient from samba 2.2.7(compiled on my own system) and the...
2002 Nov 29
0
libsmbclient problem
...on the first server (using the /etc/smb.conf) but it doesn't work on the second samba server (using its /etc/smb.conf). errors: 1) list all workgroups $ ./list smb:// smbc_opendir: Invalid argument # means: A NULL file/URL was passed, or the URL would not parse, or was of incorrect form or smbc_init not called. # lists the available workgroups when called on first server 2) list servers in workgroup RATNET $ ./list smb://RATNET/ smbc_opendir: No such device # means: the workgroup or server could not be found. # lists servers when called on first server Listing dirctories and shares works...
2002 Nov 03
0
libsmbclient bug ?
...gt; #include <libsmbclient.h> void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen, char *username, int unmaxlen, char *password, int pwmaxlen) { password[0] = 0; } int main() { struct stat stat_buf; if (0 > smbc_init(auth_fn, 0)) { perror("smbc_init()"); return 0; } if (0 > (smbc_stat("smb://b0di/Muzica/lista", &stat_buf))) { perror("smbc_stat()"); return 0; } return 0; } ------...
2007 May 10
2
programming libsmbclient
...constraints, a file named 'whatever-you-want-except-with-percent' is correctly stated, opened, read. I tested the code on several distributions (debian, gentoo..) with the same results. I tried with several CIFS servers too (Win Xp, linux...). Attached: the source and the trace given by smbc_init with debug = 9. Anyone any idea ? the code: -------------------------------------------------------------------------------------- #include <sys/types.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <time.h> #include <errno.h> #incl...
2002 Oct 21
0
PATCH for libsmbclient.c (samba-2.2.5)
...we are running samba-2.2.5 under AIX4.3.3 (IBM silver node). As we tried to run the perl module Filesys::SmbClient we found the following problem in samba-2.2.5/source/libsmb/libsmbclient.c : AIX returns for "rlp.rlim_max" (file handler) the largest unsigned integer. Inside the function smbc_init the variable "smbc_start_fd" is calculated by adding a "guard space" (10'000), which returns a negative value. Please find enclose a patch for AIX. Greeting, Benjamin Fehrensen (See attached file: libsmbclient.diff) -- This message is for information purposes only. It m...
2004 Jan 03
0
DEBUG(0, ...) got no contact to IPC$
Hello developers. How can I redirect debug message from stdout to file or /dev/null. In smb.conf I have log level = 0 log file = /var/log/smbd.log and I init libsmbclient smbc_init(Rget_auth_data, 0) I don't want to display any debug message on the screen. Please help. -- Rafal Michniewicz tel. 501-252-210 Linux Counter #145337 jabber: rafim@jabber.2000-plus.pl
2004 Apr 19
0
libsmbclient vs. C++
Is it possible to use libsmbclient with C++? I make a sample program. When I try to make it, I got the following errors: In function `main': undefined reference to `smbc_init undefined reference to `smbc_opendir When I change the extension to .c, the build was successfully. I use Mandrake cooker with gcc-3.3.2.
2005 Feb 17
0
libsmbclient and closing connections
Hi, Is there a way to close a connection that was created using smbc_init/smbc_open? I have written an apache module that authenticates the user against the samba permissions of the dir/file being accessed. Everything works great, except that the samba connections to dot get closed when the http connection dies. This becomes a major problem after a while as all kin...
2007 Aug 21
3
Segment violation during the list of directory with smbc_readdir
Dear samba, I have a small piece of code that crashes on Samba 3.0.5: int main() { int smbdh; struct smbc_dirent *smbdi; char *smb_url = "smb://SERVER/Archive/NOT EMPTY"; if(smbc_init(get_auth, 0) < 0) { fprintf(stderr, "error initializing libsmbclient: %s\n", strerror(errno)); return -1; } if((smbdh = smbc_opendir(smb_url)) < 1) { fprintf(stderr,"Unable to open directory: %s", strerror(er...
2020 Oct 10
2
Lookup sid with libsmbclient (invoked from c# on mono)
...gt; My question is simple: > can someone point me to the right flow of function calls so I can run this > RPC call using the samba API with well known lib ? > > I think that > > rpccli_lsa_lookup_sids is the final call. > Is this the case ? > What the first call to do ? > smbc_init ? (no return value to send to RPC in smbc_open ?) > cli_full_connection ? (this export has no source code related ?) > cli_full_connection_creds (no export ?) > > Are there any things I missed ? > > Thanks in advance for your help > > best regards, > Vincent LE TOUX >...
2013 Feb 04
0
not able to connect to windows machine
...int m_maxLenPassword) { m_pworkgroup = "igatecorp"; m_maxLenWorkgroup = 100; m_maxlenUsername = 100; m_maxLenPassword =100; m_pusername = "abc"; m_pPassword = "1"; } smbc_init( get_auth_data_fn, l_ndebug ); Int smbc_open(const char *furl, int flags, mode_t mode); But it is giving following debugt errors: START INIT INFO: Current debug levels: all: 50 tdb: 50 printdrivers: 50 lanman: 50 smb: 50 rpc_parse: 50 rpc_srv: 50 rpc_cli: 50 passdb: 50 sam...