summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* This is a merge of the NETLOGON schannel server code from SambaVolker Lendecke2003-04-041-0/+95
| | | | | | | | | | | | | | | | | | | | TNG. Actually, it exists in the main Samba cvs tree in APPLIANCE_TNG as I found out later :-) It adds a new parameter: server schannel = yes/auto/no defaulting to auto. What does this mean to the user: No requireSignOrSeal registry patch for XP anymore. Many thanks for this code to Luke Leighton, Elrond and anybody else I forgot to mention. My next thing will be to see if this applies cleanly to 3_0. Please test and comment! Volker
* - Support building all auth modules as .so'sJelmer Vernooij2003-03-251-35/+35
| | | | - Change 2 variable names to avoid conflicts (patch by Stephan Kulow <coolo@kde.org>)
* Fix signed/unsigned issues - mostly 'i' counters.Andrew Bartlett2003-03-156-43/+43
| | | | | | Fix an inconpatible poitner type that caused the IA64 not to build Andrew Bartlett
* fixed the unmarshalling of the queryaliasmem SAMR callAndrew Tridgell2003-03-131-2/+6
|
* Don't fault on error returns (ptr == 0) for this LSA query.Andrew Bartlett2003-03-091-10/+13
| | | | | | (for example, query to non-dc) Andrew Bartlett
* Some progress towards gums and tdbsam2Simo Sorce2003-03-071-18/+0
| | | | genparser works fine, and it is a marvelous tool to store objects in tdb :)
* add #define for the max device name length in a DEVICEMODEGerald Carter2003-03-061-1/+1
|
* * CR1868: only send a change notify message if we have somethingGerald Carter2003-03-031-1/+1
| | | | | | | | | that changed that the client is monitoring. * couple of comments abnout how we need to validate driver names on SetPrinter() and AddPrinter() * up the debug level on some overly verbose dev mode parsing messages
* More const fixes and flow on fixes from yesterday's const-fest.Tim Potter2003-02-252-12/+15
|
* Progress on CR 601Gerald Carter2003-02-251-1/+1
| | | | | | | | | cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok.
* couple of merges from APP_HEADGerald Carter2003-02-211-1/+1
| | | | | | | | * performance optimization in enumprinterdataex() when keyname is empty * fix a few typos in comments * reload services after addprinter_command() dump registry data in ascii when the key is REG_SZ or REG_MULTI_SZ
* init_dom_sid2s: Check return code from string_to_sid. Skip tokensMartin Pool2003-02-181-8/+12
| | | | that are not valid SIDs.
* Ensure that only parse_prs.c access internal members of the prs_struct.Jeremy Allison2003-02-143-30/+72
| | | | | Needed to move to disk based i/o later. Jeremy.
* removed a duplicate copy of smb_io_sid_array()Andrew Tridgell2003-02-111-46/+0
|
* added server stubs for lsa_enum_acct_with_rightAndrew Tridgell2003-02-112-0/+86
|
* added the 'lsaenumacctwithright' command to rpcclient. This allows youAndrew Tridgell2003-02-102-2/+111
| | | | | to lookup what SIDs have a particular privilege (that is how privileges are stored).
* added the LSA privileges server backend stubs. Right now they just logAndrew Tridgell2003-02-061-1/+30
| | | | what was requested.
* Send the user's session key in the SAMLOGON reply, so that a member server canAndrew Bartlett2003-02-021-2/+2
| | | | | | use smb signing. Andrew Bartlett
* Pass down max_size parameter to init_samr_q_query_dispinfo() insteadTim Potter2003-01-291-2/+2
| | | | of hardcoding it to 0xffff.
* added LsaRemoveAccountRightsAndrew Tridgell2003-01-281-0/+61
| | | | | this now gives us complete remove privileges control in the client libs, so we are in good shape for starting on the server side.
* cleaned up the lsa_enum_acct_rights function and added aAndrew Tridgell2003-01-282-12/+103
| | | | | | lsa_add_acct_rights function. This allows us to add privileges remotely to accounts using rpcclient.
* reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2003-01-178-185/+194
|
* This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2003-01-178-194/+185
| | | | | | | | | | | | | | calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing.
* added cli_lsa_enum_account_rights() call. Note that this is inAndrew Tridgell2003-01-152-0/+109
| | | | | | | | | | | principal similar to the existing cli_lsa_enum_privsaccount() call, except that cli_lsa_enum_account_rights() doesn't require a call to open_account first. There is also the minor matter that cli_lsa_enum_account_rights() works whereas cli_lsa_enum_privsaccount() doesn't! this call can be used to find what privileges an account or group has. This is a first step towards proper privileges support in Samba.
* Fix typo, and the build.Andrew Bartlett2003-01-131-1/+1
|
* Make sure that those cleanups actually went in.Richard Sharpe2003-01-131-2/+2
|
* Remove dead function.Tim Potter2003-01-091-19/+0
|
* BIG patch...Andrew Bartlett2003-01-0213-661/+662
| | | | | | | | | | | | | | | | 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
* the shutdown call does not have a 16 bit flags, but 2 byte representing booleansSimo Sorce2002-12-301-4/+8
| | | | | | | | this commit change the structure and code to reflect this some test revelead I'm right. some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
* the 'padding' field in the query domain info reply is not a paddingAndrew Tridgell2002-12-231-2/+8
| | | | | | field at all. It seems to be an optional 12 byte structure of some kind. mkaplan found a situation where the structure was not present at all (depending on ptr_0)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | named. Ensure we can query them. Jeremy.
* Guy Harris points out that the level and ptr fields in aTim Potter2002-12-131-0/+4
| | | | | | SPOOL_USER_CTR look like they should be transposed. We don't make use of the user level information (what is it used for??) so I haven't changed any code, just added a comment.
* Support printer info 7, used for publishingJim McDonough2002-12-031-0/+63
|
* Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2002-11-231-1/+2
| | | | | Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy.
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-125-40/+42
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-071-1/+1
| | | | | | | Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy.
* For a BUFFER5, don't parse the buffer if the buffer length is zero.Tim Potter2002-11-061-3/+4
|
* Client side functions for enumprinterkey.Tim Potter2002-11-061-0/+29
|
* This fixes some bugs for NT4 usrmgr.exeVolker Lendecke2002-10-191-1/+11
| | | | Volker
* When unmarshalling a relstr, don't unmarshall the string data if theTim Potter2002-10-171-0/+3
| | | | | | | | | offset is zero. Previously we were jumping to the start of the parse buffer (i.e offset zero) and reading string data until we hit a terminating NULL. Test case: in a PRINTER_INFO_0 structure, the servername field may be NULL when doing an enumprinters with flags = PRINTER_ENUM_LOCAL.
* Nice *big* patch from metze.Andrew Bartlett2002-10-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The actual design change is relitivly small however: It all goes back to jerry's 'BOOL store', added to many of the elements in a SAM_ACCOUNT. This ensured that smb.conf defaults did not get 'fixed' into ldap. This was a great win for admins, and this patch follows in the same way. This patch extends the concept - we don't store values back into LDAP unless they have been changed. So if we read a value, but don't update it, or we read a value, find it's not there and use a default, we will not update ldap with that value. This reduced clutter in our LDAP DB, and makes it easier to change defaults later on. Metze's particular problem was that when we 'write back' an unchanged value, we would clear any muliple values in that feild. Now he can still have his mulitivalued 'uid' feild, without Samba changing it for *every* other operation. This also applies to many other attributes, and helps to eliminate a nasty race condition. (Time between get and set) This patch is big, and needs more testing, but metze has tested usrmgr, and I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly flawed ;-). The same system will be introduced into the SAM code shortly, but this fixes bugs that people were coming across in production uses of Samba 3.0/HEAD, hence it's inclusion here. Andrew Bartlett
* missing prs_align()'sGerald Carter2002-10-051-0/+9
|
* merge of working dsrolegetprimdominfo() client code from APP_HEADGerald Carter2002-10-042-2/+115
|
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-10/+25
| | | | from APP_HEAD
* HEAD and APP-HEAD spoolss parsing was out of sync. This MUST NOT HAPPEN !Jeremy Allison2002-09-271-20/+17
| | | | Jeremy.
* Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*Andrew Bartlett2002-09-261-1/+44
| | | | | | | | | | | | better job of working with usrmgr. Previously we were blanking out entires, and all sort of mischif. The new patch (which I've now had a chance to test/modify) also takes care not to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store \\server\user back) and to correctly notice 'not set' compared to 'null string' etc. Andrew Bartlett
* Change parsing of policy and privs delta to what Ethereal says.Volker Lendecke2002-09-221-70/+66
| | | | Volker
* wrong alignment size calculationSimo Sorce2002-09-131-1/+3
| | | | spot by Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
* Display debug data we are marshalling/unmarshalling a UNISTR in aTim Potter2002-09-061-1/+7
| | | | similar format to UNISTR2.
* A netshareenum reply always contains an enum_hnd. win2k returns zeroTim Potter2002-09-051-4/+2
| | | | | total entries on an error whereas nt4 must send uninitialised data so we didn't catch this one before.