summaryrefslogtreecommitdiffstats
path: root/source/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
* Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij2003-03-241-1/+1
| | | | some double options and broke some parameters.
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-36/+9
|
* Fix setOtherHelp() - pointed out by metzeJelmer Vernooij2003-03-201-1/+1
|
* Fix compile errors - don't use pstrcpy() on a fstringJelmer Vernooij2003-03-201-7/+8
|
* Use True, not TRUE and False, not FALSEJelmer Vernooij2003-03-201-4/+4
|
* Convert smbcacls to poptJelmer Vernooij2003-03-201-84/+50
|
* Fix off-by-one bug in safe_strcpy size paramater.Andrew Bartlett2003-03-151-1/+1
|
* Fix a number of client-side fstring/pstring mixups.Andrew Bartlett2003-01-111-3/+3
| | | | Andrew Bartlett
* BIG patch...Andrew Bartlett2003-01-021-7/+7
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | named. Ensure we can query them. Jeremy.
* Fix fnum leak under error condition in cacl_dump.Tim Potter2002-12-151-6/+13
|
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-10/+8
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Added new error codes. Fix up connection code to retry in the same wayJeremy Allison2002-10-171-1/+1
| | | | | that app-head does. Jeremy.
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-1/+1
| | | | from APP_HEAD
* Another smattering of static and constAndrew Bartlett2002-07-211-1/+1
|
* This makes smbcacls a bit easier to use and debug.Andrew Bartlett2002-07-131-8/+15
| | | | | | | Allow connection in the form of //server/share instead of just \\server\share and show the reason for failure from cli_full_connection(). Andrew Bartlett
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-251-1/+1
| | | | | | few more places to use it. Andrew Bartlett
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-241-1/+1
| | | | | | | | didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett
* Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett2002-05-231-76/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this: More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to deal with. With a header comment like this: 'obfusticaion is planned' I think it deserved to die (at least partly). This was being done to allow 'cli_establish_connection' to die - its functionality has been replaced by cli_full_connection(), which does not duplicate code everywhere for creating names etc. This also removes the little 'init' fucntions for the various pipes, becouse they were only used in one place, and even then it was dodgy. (I've reworked smbcacls not to use anonymous connections any more, as this will (should) fail with a 'restrict anonymous' PDC). This allowed me to remove cli_pipe_util.c, which was calling cli_establish_connection. tpot: I'm not sure what direction you were going with the client stuff, and you may well have been wanting the init functions. If thats the case, give me a yell and I'll reimplement them against cli_full_connection. Andrew Bartlett
* The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter2002-04-141-7/+5
| | | | | | information when one or more of the names/sids being queried were not resolvable. We now return a list the same length as the parameters passed instead of an array of just the resolvable names/sids.
* int -> uint32 fixes from andreasTim Potter2002-02-161-4/+4
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-261-5/+2
| | | | | | | | | | winbind default domains, particulary now I understand whats going on a lot better. This ensures that the RPC client code does as little 'magic' as possible - this is up to the application/user. (Where - for to name->sid code - it was all along). This leaves the change that allows the sid->name code to return domains and usernames in seperate paramaters. Andrew Bartlett
* This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett2002-01-201-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | smbd, and also makes it much cleaner inside winbindd. It is mostly my code, with a few changes and testing performed by Alexander Bokovoy <a.bokovoy@sam-solutions.net>. ab has tested it in security=domain and security=ads, but more testing is always appricatiated. The idea is that we no longer cart around a 'domain\user' string, we keep them seperate until the last moment - when we push that string into a pwent on onto the socket. This removes the need to be constantly parsing that string - the domain prefix is almost always already provided, (only a couple of functions actually changed arguments in all this). Some consequential changes to the RPC client code, to stop it concatonating the two strings (it now passes them both back as params). I havn't changed the cache code, however the usernames will no longer have a double domain prefix in the key string. The actual structures are unchanged - but the meaning of 'username' in the 'rid' will have changed. (The cache is invalidated at startup, so on-disk formats are not an issue here). Andrew Bartlett
* Fixup JF's weird SID return :-).Jeremy Allison2001-12-181-1/+1
| | | | Jeremy
* Renamed sid field in SEC_ACE to trustee to be more in line with MS'sTim Potter2001-11-301-10/+22
| | | | definitions.
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-5/+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);
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-2/+0
| | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean.
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-2/+1
| | | | default, rather than in preprocessor macros.
* move to SAFE_FREE()Simo Sorce2001-09-171-12/+10
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | 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.
* it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell2001-09-041-7/+6
| | | | the build farm
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-3/+3
|
* fixed handling of 139/445 in clientsAndrew Tridgell2001-08-241-2/+1
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-5/+5
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-2/+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.
* Removed bogus server_n local variable in connect_one() function.Tim Potter2001-07-041-5/+2
|
* Added some missing entries to usage().Tim Potter2001-06-271-1/+7
| | | | Added -d option to set debug level.
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-2/+2
| | | | | | | | | but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour
* Warning fix from Andrew Bartlett.Jeremy Allison2001-06-201-1/+1
| | | | Jeremy.
* rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.Jeremy Allison2001-06-191-1/+1
| | | | | utils/smbcacls.c: Set enum correctly. Jeremy.
* Fixup smbcacls. Don't return memory already freed, don't free memory allocatedJeremy Allison2001-05-011-10/+3
| | | | | with talloc. Jeremy.
* fixed some uninitialised variablesAndrew Tridgell2001-05-011-1/+1
|
* rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter2001-04-281-3/+3
|
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-7/+4
| | | | Jeremy.
* Added SMB_ prefix to enums that clash with Solaris ACL definitions.Jeremy Allison2001-04-111-9/+9
| | | | Jeremy.
* Ooops - forgot to check the rpcclient and smbcacls compile with the newJeremy Allison2001-02-281-22/+18
| | | | | code :-(. Jeremy.
* make sure denied aces are firstAndrew Tridgell2001-02-231-1/+1
|