summaryrefslogtreecommitdiffstats
path: root/source3/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* don't set the owner and group sid offset is there are no owner or groupJean-François Micouleau2002-04-291-4/+5
| | | | | | | owner. J.F. (This used to be commit 68e9211f5df0480cb88d7d21140c4954da47e7ae)
* merge from SAMBA_2_2Gerald Carter2002-04-221-42/+19
| | | | (This used to be commit 5e381abbbfaa15f3ebd89cba3cd9bb6de8e4ff4e)
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-143-27/+96
| | | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
* HP2500C driver writes devmode with private data that endsJeremy Allison2002-04-111-0/+9
| | | | | | | on a 2 byte boundary. We then miss-parse the desired_access. Also added other fixes to ensure we align after private data (discussed with Gerry). Jeremy. (This used to be commit 4369a58765f382e118e5393c805336484671cbf9)
* specversion merge from SAMBA_2_2Gerald Carter2002-04-111-0/+27
| | | | (This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
* Fixed missing alignment in spoolss_io_q_enumjobs() function.Tim Potter2002-04-101-0/+3
| | | | (This used to be commit e878cdc9f59084f39c022f2faa140369f76e94ec)
* Added Shirish's client side caching policy change.Jeremy Allison2002-04-101-0/+114
| | | | | Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
* The useless_ptr must be non-zero for addform and setform client functionsTim Potter2002-04-091-2/+5
| | | | | | | to work. Note about setprinter level 1 not existing. (This used to be commit 6367bfc4781a678923f1fba4681c9b7fc6bb9710)
* Fixed the handle leak in the connection management code (this code is crapJeremy Allison2002-04-041-0/+6
| | | | | | and should be rewritten, just not now... :-). Jeremy. (This used to be commit 5de792e7e9c2ad1422ac146caba632baa3f4e5c5)
* OpenPrinter() merge from 2.2Gerald Carter2002-03-261-19/+76
| | | | (This used to be commit 619397cc90549d4602ecddc25ee50eb247c913ee)
* Stomped on some header file version numbers that have crept back in.Tim Potter2002-03-221-2/+1
| | | | (This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
* resetprinter merge from SAMBA_2_2Gerald Carter2002-03-201-12/+12
| | | | (This used to be commit 88d8897e21749f177952b264031aa386bbbeaaeb)
* Fix for debug typo.Jeremy Allison2002-03-201-1/+1
| | | | (This used to be commit 5b43519219991fe14c8ce1993c16557bf5ceccb4)
* Added dos_errstr() function. Not all errors in list yet.Tim Potter2002-03-171-1/+1
| | | | (This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-1/+1
| | | | (This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
* syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2002-03-151-41/+232
| | | | | | | | | | | | | | in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
* Remove studly gaps from prs_werror() calls so the same debug text isTim Potter2002-03-142-11/+11
| | | | | | logged. This makes it much easier to use grep on log files when searching for errors. (This used to be commit ab1ebd377931166f2ecded784a0182102d4c1ca2)
* yipee! Finally put in the patch from Alexey KotovichAndrew Tridgell2002-03-101-23/+243
| | | | | | | | | <a.kotovich@sam-solutions.net> that adds the security decsriptor code for ADS workstation accounts thanks for your patience Cat, and thanks to Andrew Bartlett for extensive reviews and suggestions about this code. (This used to be commit 6891393b5db868246fe52ff62b3dc6aa5ca6f726)
* Fix the NTSTATUS -> WERROR for srvsvc pipe.Jeremy Allison2002-03-051-36/+38
| | | | | Jeremy. (This used to be commit 2b85d3570c2b149049482c3878c50cf8f5bfca61)
* more constAndrew Bartlett2002-03-021-2/+2
| | | | (This used to be commit f0b16b7b515296d0e687e084564fe0718f189dc8)
* And a little more const.Andrew Bartlett2002-03-021-3/+3
| | | | (This used to be commit 044391b5973f6070abf6ac185c74ffd713e933c5)
* Patch for Domain users not showing up from "Ivan Zhakov" <vunny@mail.ru>.Jeremy Allison2002-02-271-11/+11
| | | | | Jeremy. (This used to be commit 3f9063167f3fc9ae7e7fd753d76ece23c1d97800)
* Implemented client side functions for SPOOLSS addform, getform, setform andTim Potter2002-02-251-2/+36
| | | | | enumforms. (This used to be commit e69222f0816878e3211e3dedb049de50ca90fed0)
* Added make functions for SPOOL_Q_{ADD,SET,DELETE}FORM.Tim Potter2002-01-311-1/+42
| | | | | | | | I'm pretty sure that the useless_ptr in spoolss_io_q_setform() needs to be initialised to 1 otherwise the form isn't marshalled at all. JF, can you verify this? If so then this probably applies to the io functions for setform and deleteform. (This used to be commit 1803778451a344c6c8d116eac5eaac777e5cf4fe)
* Removed version number from file header.Tim Potter2002-01-3012-24/+12
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-261-11/+3
| | | | | | | | | | | 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 used to be commit 5dfba2cf536f761b0aee314ed9e30dc53900b691)
* We may as well not use these temporary variables - they are only used once andAndrew Bartlett2002-01-261-3/+1
| | | | | just make it harder to debug (gcc stips optomises them away). (This used to be commit 100d2705ddfa1fde73a0bb06e8e097b2b1cbf36a)
* Try to move towards slightly sane linking for Samba by removing some pdb_...()Andrew Bartlett2002-01-261-17/+32
| | | | | | | | | | | calls from rpc_parse/parse_net.c - instead these values are passed as a paramater. Unfortunetly some there is still some samr work to be done before this is actually useful. Andrew Bartlett (This used to be commit 4fc9e16ad7a77cf2e37b27640c0dec2052e9cda0)
* Fixed ADDPRINTEREX to take a devmode and a security descriptor...Jeremy Allison2002-01-261-21/+29
| | | | | Jeremy. (This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)
* This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett2002-01-201-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (This used to be commit e870f0e727952aeb8599cf93ad2650ae56eca033)
* Added prs_mem_clear(). Clear memory on buffer reallocation. That wayJeremy Allison2002-01-182-11/+19
| | | | | | we're not returning what the client gave us. Jeremy. (This used to be commit 9a969069f132019cdd8a11be2b00356a3f09b64d)
* Always clear malloced memory for parse structs.Jeremy Allison2002-01-181-0/+1
| | | | | Jeremy. (This used to be commit 6deb4caca5b45f87be84032fe0588db8d73b901a)
* Added PRINTER_INFO_4/PRINTER_INFO_5, we're seeing level 5 requested on the ↵Jeremy Allison2002-01-121-0/+91
| | | | | | | wire... so. Jeremy. (This used to be commit b63b76297835ab8227b98925fa8120ffce1a37d9)
* Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERRORTim Potter2002-01-071-1/+1
| | | | | but a plain old uint32. (This used to be commit 690cc12bad2a037684a43b0dcb48be8eb03aa7bc)
* Add prs_dump_before to dump everything from the start of the prsMartin Pool2002-01-021-4/+23
| | | | | | buffer up to the current position, and use this to dump pipe buffers just before parsing. (This used to be commit 92a3ab274e6cf09a8ba39b91f8bbacba6de40b37)
* more irix -64 portability fixesAndrew Tridgell2001-12-311-1/+1
| | | | (This used to be commit 65e857b36e170e3ecd78bf6695ae73342e9c04cd)
* Give the main loop talloc context a name (using mbp's new talloc namingAndrew Bartlett2001-12-311-1/+1
| | | | | | | system). Andrew Bartlett (This used to be commit f0c301a12eb142add488a2da55591269dfc15f77)
* added a copyright notice.Jean-François Micouleau2001-12-211-0/+1
| | | | | J.F. (This used to be commit 87928c4d91940447191af4fe83a2be7ac3477361)
* doesn't keep track of the struct's size we enumerate. W2K doesn'tJean-François Micouleau2001-12-211-4/+4
| | | | | | | | | | | | | | | | | | | | | calculate them and always reply a size of 32 bytes whereas NT4 did the maths. Anyway, it looks like the clients don't complain. in query_dom_info() at level 2, return the real number of users and groups. That's the fix to the W95/98 userlist bug ! as W95/98 does a query_dom_info(2) followed by a query_disp_info(4) on the SAME context handle (err we call it an lsa policy handle ! plain wrong name), I was tempted to keep the snapshoot in memory, to prevent 2 full user db enumerations in a row and just have one shared. But if some client does the 2 calls on two different handles, we would have 2 copies in memory not free'ed before the samr_close(). We still have too many fixed constant and too many magic values in that code. And btw, I really hates how the sequence number is generated ! J.F. (This used to be commit c0178e1a03f8225e5b350feb8fcbfb02f43327b4)
* re-done all of samr_query_disp_info()Jean-François Micouleau2001-12-211-125/+76
| | | | | | | | | | | | | | instead of enumerating the whole user db or group db every time, we store a in memory copy linked to the handle. that's much faster for large enumeration where the db can't fit in a single rpc packet. And as it's a copy, it's constant between enumeration. still some stuff to clean. But now I can fix the W95 userlist bug, as I've finally found it. J.F. (This used to be commit 3ab45215369e8e93d750f4687e9c1f7d47782590)
* merge from 2.2Gerald Carter2001-12-201-6/+6
| | | | (This used to be commit 72d3b160229ce9ab8497579ee79668738a70a81f)
* added info level 1 to samr_query_alias()Jean-François Micouleau2001-12-191-0/+61
| | | | (This used to be commit 589aa4fe226ee5bdae0a244631193714b0b556ac)
* fixing bug I introduced.Jean-François Micouleau2001-12-181-1/+1
| | | | | J.F. (This used to be commit 49764852c516a22fba84d6289c93bed0e5da1c7e)
* there is no unknown field in LSA_SEC_QOSJean-François Micouleau2001-12-171-19/+15
| | | | | | | | | | | | | | some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the length fields are not correct but that's what NT send. We don't anymore underflow or overflow the decoding. added the domain admins group to the default SD. we are now checking the desired access flag in the lsa_open_policy_X() calls and in most functions also. J.F. (This used to be commit a217c4e4ff4d13122703d22258792fe5e8e9f02f)
* Replaced some hardcoded hex numbers with constants.Tim Potter2001-12-171-4/+8
| | | | | | | Made a note about NOTIFY_OPTION_TYPE and NOTIFY_OPTION_TYPE_DATA - they are actually one structure. The latter is just the deferred referrant of the former. (This used to be commit b596c0b171b1fd0e25e52944c880e8a90bc10a2e)
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-5/+8
| | | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F. (This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)
* merge from 2.2Gerald Carter2001-12-131-0/+3
| | | | (This used to be commit 5b4b3323a3fbabbb3c7db5eb3b11999bbde470b1)
* decoded SAM_DELTA 0x0e and 0x12.Jean-François Micouleau2001-12-121-0/+144
| | | | | | | | | | One is an entry for the trusted domains The other is an entry for the trusting domains They are pretty basic, I'll improve them. J.F. (This used to be commit 8d359e62138aa327cb00875dc446234ce4be6f02)
* a ugly decoder for SAM_DELTA_DOM_INFO (0x0d)Jean-François Micouleau2001-12-121-39/+203
| | | | | | | | | | a correct decoder for SAM_PRIVS_INFO (0x10) this code is totally useless right now, it's just fun to decode those and will save tpot some time. J.F. (This used to be commit 314b675ed9ebacba9db25938c43cfa304462ebe2)
* added info level 3 to samrgetgroupinfo. I don't know what the value is.Jean-François Micouleau2001-12-101-6/+44
| | | | | | | | | | | | | | It's just to keep usermanager happy ;-) clean up a bit samr_query_aliasinfo to return the group description added: samr_del_aliasmem, samr_del_groupmem and samr_del_domuser with the correct scripts, you can now entirely manage the users from usermanager ! Closer to full PDC every day ;-) J.F. (This used to be commit 0a727afc669704cda9b44d44dbac9e989e906ae3)