summaryrefslogtreecommitdiffstats
path: root/source3/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-122-17/+36
| | | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also. (This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
* Merge in the NT drivers changes from 2.2.Jeremy Allison2001-08-101-1/+1
| | | | | Jeremy. (This used to be commit a3781ad38ff6c70238e7e9b83324477e5c9780d5)
* - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce2001-08-101-6/+211
| | | | | | | | - ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0 (This used to be commit fd54412ce9c3504a547e232602d6129e08dd9d4d)
* A collection of fixes/cleanups to the security descriptor code byTim Potter2001-08-071-9/+10
| | | | | matt_zinkevicius@hp.com (This used to be commit ce22267ec840aaa3cc8f9b88a62b45c723a06b01)
* This is my 'Authentication Rewrite' version 1.01, mostly as submitted toAndrew Bartlett2001-08-032-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | samba-technical a few weeks ago. The idea here is to standardize the checking of user names and passwords, thereby ensuring that all authtentications pass the same standards. The interface currently implemented in as nt_status = check_password(user_info, server_info) where user_info contains (mostly) the authentication data, and server_info contains things like the user-id they got, and their resolved user name. The current ugliness with the way the structures are created will be killed the next revision, when they will be created and malloced by creator functions. This patch also includes the first implementation of NTLMv2 in HEAD, but which needs some more testing. We also add a hack to allow plaintext passwords to be compared with smbpasswd, not the system password database. Finally, this patch probably reintroduces the PAM accounts bug we had in 2.2.0, I'll fix that once this hits the tree. (I've just finished testing it on a wide variety of platforms, so I want to get this patch in). (This used to be commit b30b6202f31d339b48d51c0d38174cafd1cfcd42)
* Fix for smbpasswd set_userinfo24 was in the wrong place!Tim Potter2001-08-031-4/+4
| | | | (This used to be commit c9cbe3237e01983a5063e5680ad71c7579009f28)
* Allow smbpasswd to join a W2K hosted AD domain.Jeremy Allison2001-08-021-1/+6
| | | | | Jeremy. (This used to be commit c51cfc7f0d3ad1614ca1e0330c8707f7b263b8e6)
* Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.Tim Potter2001-07-251-12/+12
| | | | | | | According to the incorruptible judges find and grep, the latter won. Mmm - procrastination. (-: (This used to be commit 2e339403605177b15d5185a8fdd1b06f3f043168)
* This backs out my last change, which broke some of the finer points of RPCAndrew Bartlett2001-07-112-58/+11
| | | | | | | | | | coding :-). I'll be more carfull in this area in future. This does not back out the cli_login change, so domain logons still work, but only for english. Andrew Bartlett (This used to be commit bd3c2a0cddc71daa4165e1a0916208d0c650d55a)
* This fixes security=domain, which has been broke since the big charsetAndrew Bartlett2001-07-102-11/+58
| | | | | | | | | | | | | | | | | | | | changeover. For my own sainity I have created a new function to fill out both the header and buffer for a string in an RPC struct. This DOES NOT take a length argument, only the actual string to be placed. The RPC code is currently littered with code that does init_uni_hdr() followed immidiatly by init_unistr2(), and often the length argument is wrong. (It was for the code I changed, even before the charset stuff). Another bug where we made strings AT LEAST MAX_UNICODE_LEN long hid this bug. This works for loopback connections to Samba, and can't be any more broke than it was before :-). (We had double and revese conversions, fun...). In particular this makes us multibyte complient. In any case, if there are no objections I will slowly convert other bits of code to the same system. (This used to be commit cf1d1cd9d6362f6e32ed9c2f6d2f6f25c47705ad)
* implement:Jean-François Micouleau2001-07-091-0/+476
| | | | | | | | | | | | | | LSA_ENUM_PRIVS LSA_PRIV_GET_DISPNAME LSA_ENUM_ACCOUNTS LSA_OPENACCOUNT LSA_ENUMPRIVSACCOUNT LSA_GETSYSTEMACCOUNT It's a work in progress. nobody should expect it to work J.F. (This used to be commit 3056357cd8d4b2460f73ba8a8931a143f07fa2a6)
* add query user info level 20 (for RAS)Jean-François Micouleau2001-07-091-0/+84
| | | | | | | | | add query dominfo level 5 some cleanup, don't free talloced memory. implement delete domain and local groups. J.F. (This used to be commit 3f14dda2a21850edfd540be2624867e5f70a382c)
* when converting ascii to unicode, if the ascii string is NULL, don'tJean-François Micouleau2001-07-091-0/+7
| | | | | convert it, rpcstr_push doesn't like it. (This used to be commit a8006e6f3eb1e06f4d48727de31e1229d6eef58a)
* Added JF's fix for max_entries being 0.Jeremy Allison2001-07-061-0/+15
| | | | | Jeremy. (This used to be commit 5059fbbb76ffa24658a878080a36e355df4894f5)
* The big character set handling changeover!Andrew Tridgell2001-07-043-13/+11
| | | | | | | | 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. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Missing prs_align() was causing Win9x nexus tools to fail. security_info_sentJeremy Allison2001-07-021-0/+3
| | | | | | was being miss-parsed. Jeremy. (This used to be commit 1685e41da04f1fbbab036e194ce1b1e7ba9fef86)
* Fixed auto-alloc of dispinfo code when unmarshalling.Jeremy Allison2001-07-021-4/+64
| | | | | Jeremy. (This used to be commit d4872c94c2e6b63be0fb12e5dd2d0459fda54959)
* Added LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.Jeremy Allison2001-06-291-0/+70
| | | | | Jeremy. (This used to be commit 7079300da6dbd950e55dc5871851250d5a3717ff)
* From JF....Jeremy Allison2001-06-291-27/+93
| | | | | | | | | | | | | | | | | | | | hi jeremy, can you commit the following patch against HEAD. I can't do it right now Thanks Tim for me. He changed the SAM_DISPINFO_1 array without checking if he didn't break the server code. And he did. So on my way I cleaned info_1, 2, .. 5 it may break winbind. I leave to tim the pleasure to fix it ;-) jf. I added some talloc changes and checks for alloc fails. Jeremy. (This used to be commit 001e9b7b540f04c80ba65c879aaa41acddc86f3e)
* Removed another silly static array.Tim Potter2001-06-291-5/+16
| | | | (This used to be commit 008628fb8ac9f92d984218f37fffdfa3cb9e3d62)
* SGI compiler fixes.Herb Lewis2001-06-261-2/+2
| | | | | Jeremy (This used to be commit 45bf995bf62aa6cc176d57e2f954cc2d379717ef)
* Ensure we always have a valid pointer on unmarshalling an SD with zeroJeremy Allison2001-06-261-3/+7
| | | | | | ace entries. Jeremy. (This used to be commit 274c0f5028d41175222dfaaf446e3ed8f5687a5f)
* Fixed bug introduced by changeover of security descriptor code fromTim Potter2001-06-261-1/+8
| | | | | | | | | | | | malloc() to talloc(). Previously, creating an ACL containing zero ACEs would return a non-NULL pointer to zero bytes of memory. The talloc() code would return a NULL pointer making the ACL a NULL ACL instead of an empty one. The difference is a NULL ACL allows all access and an empty ACL denies all access. We solve this by calling talloc(ctx, sizeof(SEC_ACE) * num_aces + 1). Heh. (This used to be commit 89eaaafe7d266788609fab6951fd912c441b3a26)
* Cosmetic fixups found while playing with the server manager. Added supportTim Potter2001-06-251-1/+72
| | | | | | | | | | | for NET_SRV_SET_INFO rpc call which is made when double-clicking on a computer in the server manager and changing the description. We always return NT_STATUS_NOPROBLEMO as NT doesn't seem to decode any error messages passed back. Maybe the changed comment string could be stored in a tdb and regurgitated instead of the "server string" smb.conf parameter? (This used to be commit d936ffedd90fe442f990c9ac2e172877f28d7230)
* sync this function with 2.2 (single check for NULL parameter)Gerald Carter2001-06-221-0/+3
| | | | (This used to be commit 3ab50e648d682080308d2db6bdb71eef0e303988)
* Removed unused (and potentially crash-causing) free function.Jeremy Allison2001-06-221-14/+0
| | | | | Jeremy. (This used to be commit 54ea00fa870f258b885b18e8684caa8488948607)
* Merging Gerry's spoolss changes.Jeremy Allison2001-06-211-6/+59
| | | | | Jeremy. (This used to be commit 6b4a70cd8285c1e4d452e3af7df070b4c446ff54)
* Fixed W2K SP2 joining a Samba PDC hosted domain.Jeremy Allison2001-06-202-6/+136
| | | | | Jermey. (This used to be commit 05a2911403a0710d994a618e72743205a3b0b87a)
* INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to notJeremy Allison2001-06-191-7/+2
| | | | | | depend on it... Jeremy. (This used to be commit 0fe11c329f7b379299be65795031e4f1b14e0bec)
* Modified version of Jim's 0x27 and 0x28 Win9x Secdesc patch.Jeremy Allison2001-06-161-0/+75
| | | | | Jeremy. (This used to be commit 5690ec77c87475f1fd2e854cda594eb996d6fd04)
* Jim McDonough's parse patches for Win9x get SD calls.Jeremy Allison2001-06-151-0/+87
| | | | | Jeremy. (This used to be commit bc366f31537408380860906cc041de232b27b714)
* Fixed typo spotted by "Jim McDonough" <jmcd@us.ibm.com>....Jeremy Allison2001-06-151-1/+1
| | | | | Jeremy. (This used to be commit a600c96e596375bf27c15026c032944a066e7290)
* Add password length field to SAM_USER_INFO24 structure and fix initTim Potter2001-06-151-1/+9
| | | | | and parse function. (This used to be commit d2eafa7483a53958b6c930ca05da6e6a6c21b785)
* Added some msdfs client routines.Tim Potter2001-06-131-5/+27
| | | | (This used to be commit 13df2304b309a2bd14d4441db0e72e75b8742262)
* Converted init_samr_q_lookup_names() and samr_io_q_lookup_names()Tim Potter2001-06-061-2/+12
| | | | | to use tallocated memory instead of dodgy static arrays. (This used to be commit 35d27941141ecdc3bfe18651e5225a94d818e8c1)
* Added *.po to .cvsignore files.Tim Potter2001-06-011-0/+1
| | | | (This used to be commit 870e9e4e89dcf910c595cabb28f69ad070942072)
* Added a init function for net_q_logon_ctrl2 so we can make this callTim Potter2001-05-241-12/+133
| | | | | | | | from rpcclient. Added init and i/o functions for net_{q,r}_logon_ctrl functions so we can call from rpcclient and respond to this call from smbd. (This used to be commit 8ba30031a4fd900b9b87cf5d04c2f2bf6c436718)
* merge from 2.2 DeletePrinterDriver() server side stud comingGerald Carter2001-05-171-0/+77
| | | | | in separate commit after I get it working in 2.2. (This used to be commit 09506ac0e64b84d73e3b8fdd4942fa52dba6060f)
* Reverted samr_io_userinfo_ctr() patch because it broke too much otherTim Potter2001-05-101-11/+5
| | | | | stuff. (-: (This used to be commit 5bbd946d592fde9ac6bf1c66268ef608d5988363)
* So the samr_io_userinfo_ctr was requiring a SAM_USERINFO_CTR to be passedTim Potter2001-05-091-5/+11
| | | | | | | in as well as tallocating space for one itself. I've deleted code so the passed in container is used to store the SAM user info. This may have broken some server side SAM stuff which probably isn't used anyway. )-: (This used to be commit fc44cec0de68c92001c4313b4f0ee9f69ba6b9b5)
* fixes to the group mapping code.Jean-François Micouleau2001-05-081-9/+12
| | | | | | | Not ready yet. J.F. (This used to be commit 62a7a567fdea230b77cc97a3f74d868542c34700)
* Fixed typo in comment.Tim Potter2001-05-081-1/+1
| | | | (This used to be commit a8c49d1e608b178bcc53725d4a26cebb799fc6eb)
* iinit_samr_q_lookup_rids() didn't actually copy the rids into theTim Potter2001-05-081-0/+2
| | | | | parse structure. (This used to be commit 139e767e78adafa4d4469d2d63415d46267f2fc9)
* Renamed unknown field to access mask in open alias parsing functions.Tim Potter2001-05-041-6/+3
| | | | (This used to be commit d384cae5707889f34ac19ccd80737ab6eb5fdb98)
* Added code from "Nigel Williams" <nigel@veritas.com> (yes, the same famousJeremy Allison2001-05-012-19/+236
| | | | | | | Nigel Williams who did NIS/GINA !) to implement add/modify/delete shares for Win2k. Needs testing as I made a few mods to the original code. Jeremy. (This used to be commit 9b3dd801765fad28c0f9d58e5af2537cfccdd4ee)
* few cleanups to bring in line with 2.2Gerald Carter2001-04-281-1/+0
| | | | (This used to be commit 0feaac00a1847af41464d4ce35821ff851cded9c)
* rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter2001-04-281-17/+27
| | | | (This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
* Added Herb's comment fix.Jeremy Allison2001-04-271-1/+0
| | | | | Jeremy. (This used to be commit f4f4aae675f55d3319aca8489621afc92aaf8de1)
* Fix "proc num out of range" error. Missing rpc call.Jeremy Allison2001-04-231-0/+56
| | | | | Jeremy. (This used to be commit 6248fb22926d72fddaecad5af117af1bdd08fda3)
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-1/+1
| | | | | Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)