summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Guenther Deschner to fix build with gcc 3.2Jelmer Vernooij2003-04-241-6/+6
|
* Parinoia for compleatly broken SMB servers that don't send back the rightAndrew Bartlett2003-04-231-2/+3
| | | | | | fstype for IPC$ - assume the device type is IPC. Andrew Bartlett
* Make this safe for -DDEVELOPER checks.Andrew Bartlett2003-04-231-2/+2
| | | | Andrew Bartlett
* Fix building --with-smbwrapper.Tim Potter2003-03-172-24/+6
|
* Merge minor library fixes from HEAD to 3.0.Andrew Bartlett2003-02-191-5/+5
| | | | | | | | | | | | | | - setenv() replacement - mimir's ASN1/SPNEGO typo fixes - (size_t)-1 fixes for push_* returns - function argument signed/unsigned correction - ASN1 error handling (ensure we don't use initiailsed data) - extra net ads join error checking - allow 'set security discriptor' to fail - escape ldap strings in libads. - getgrouplist() correctness fixes (include primary gid) Andrew Bartlett
* Fix smbwrapper from global* changes.Jeremy Allison2002-11-132-4/+4
| | | | Jeremy.
* Removed version number from file header.Tim Potter2002-01-3010-20/+10
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Unused file.Tim Potter2002-01-301-22/+0
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-3/+2
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison2001-11-211-1/+1
| | | | | lookup uses password server parameter when looking for PDCs. Jeremy.
* Store some path names in global variables initialized to configureMartin Pool2001-11-192-4/+3
| | | | default, rather than in preprocessor macros.
* charset_initialise() doesn't exist anymore.Tim Potter2001-10-171-2/+0
| | | | | Why don't we build smbwrapper on a build farm machine to spot this sort of thing earlier?
* remove unused function in mangle.cSimo Sorce2001-10-112-5/+10
| | | | fix some alloc leaks spotted by andreas moroder.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-024-8/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-173-28/+24
|
* fixed compilation error in smbwAndrew Tridgell2001-09-161-11/+1
|
* merge from 2.2Gerald Carter2001-09-141-0/+2
|
* convert more code to use XFILEAndrew Tridgell2001-09-101-1/+1
|
* declare dbf in one spotAndrew Tridgell2001-09-102-2/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-102-4/+4
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* compile fixSimo Sorce2001-08-231-1/+1
|
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-1/+4
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-042-3/+3
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-042-3/+0
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Grr - fixed compile error in smbwrapper stuff.Tim Potter2001-04-161-1/+1
|
* Added a caching system to smbsh. Previously access to workgroup or serverTim Potter2001-04-122-7/+214
| | | | | | directories under /smb generated net share enum or net server enum calls. For large networks this could result in bad performance. We now cache these results and only call net * enums after the cache timeout has exceeded.
* To stop people complaining about the mktemp call, move it into lib/util.c. ↵Jeremy Allison2001-04-111-5/+4
| | | | | | | | Thanks to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy.
* setup workgroup when foundAndrew Tridgell2001-02-201-0/+1
|
* Fix for no master browser present.Tim Potter2001-01-161-3/+4
|
* Compile fix for smbw_dir_add function.Tim Potter2001-01-151-4/+5
|
* Needed a callback arg on cli_list ...Richard Sharpe2001-01-051-2/+2
|
* Added extra argument to calls to smbw_share_add()Tim Potter2001-01-051-8/+8
|
* I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I hadRichard Sharpe2001-01-041-5/+6
| | | | | | to modifiy any routine that calls it to pass NULL and so forth. Should have no impact. It compiles OK.
* Return an empty directory for a stat on a share we aren't allowed toTim Potter2001-01-021-7/+17
| | | | | connect to. This gives a permission denied when a cd is attempted, but not a permission denied in the directory listing one level up.
* implemented a much nicer name_status() interface. It now returns aAndrew Tridgell2000-12-201-3/+13
| | | | | | | list of structures rather than the dodgy parsing code we had before this also gets smbw working correctly with no initial workgroup (using name_status_find on __MSBROWSE__ returns)
* Added support for SERVICESF shared variable to change configuration fileTim Potter2000-12-131-1/+4
| | | | used in lp_load().
* added support for browsing the list of workgroups at the top level inAndrew Tridgell2000-12-112-57/+77
| | | | smbw
* Fetch authentication info before actually using it.Tim Potter2000-11-111-2/+2
|
* Added a authentication hook to smbwrapper which allows a (username,Tim Potter2000-11-012-11/+56
| | | | workgroup, password) tuple to be provided by another function.
* added -L optionAndrew Tridgell2000-07-061-2/+8
|
* got smbw to compile again on LinuxAndrew Tridgell2000-07-062-3/+4
|
* removed extra arguements from make_nmb_name callsHerb Lewis2000-03-161-3/+3
|
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-136-55/+19
|
* Return a (void *)0 instead of NULL in readdir64() wrapper.Tim Potter1999-06-131-2/+1
|
* Return a #error if no functions could be found to wrap around.Tim Potter1999-06-131-0/+43
|
* removed encrypt-password code pre-cli_session_setup(), session setupLuke Leighton1999-01-291-6/+2
| | | | fn decides whether to encrypt password or not.
* - got client code cleartext passwords working again in cli_session_setup.Luke Leighton1999-01-271-2/+6
| | | | | | | | | | | | | | | | | | | needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c
* issues spotted by herb.Luke Leighton1998-12-071-1/+1
|
* weekend work. user / group database API.Luke Leighton1998-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API...
* add a error code when failed to get lockAndrew Tridgell1998-11-211-1/+1
|