summaryrefslogtreecommitdiffstats
path: root/source3/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* Add 'net rpc group [add|del]mem' for domain groups and aliases.Volker Lendecke2004-02-281-3/+3
| | | | | Volker (This used to be commit e597420421e085b17dcdc062c5900518d0d4e685)
* Add 'net rpc group add'. For this parse_samr.c had to be changed: TheVolker Lendecke2004-02-241-4/+4
| | | | | | | | | group_info4 in set_dom_group_info also has the level in the record itself. This seems not to be an align. Tested with NT4 usrmgr.exe. It can still create a domain group on a samba machine. Volker (This used to be commit 76c75bb8a7ad2a2e719dbbe997abf8aefe2fbbb4)
* More sync between passdb on 3.0 and HEAD.Jim McDonough2004-02-121-15/+10
| | | | | Replace unknown_3 with fields_present. Also causes rpc_samr structure field changes. (This used to be commit 1976843345efb6ca4f9cebd964a61acd8ae11d41)
* Make more functions static, and remove duplication in the use of functionsAndrew Bartlett2004-02-081-1/+1
| | | | | | | | | | in lib/smbpasswd.c that were exact duplicates of functions in passdb/passdb.c (These should perhaps be pulled back out to smbpasswd.c, but that can occour later). Andrew Bartlett (This used to be commit fcdc5efb1e245c8fa95cd031f67ec56093b9056e)
* This adds client-side support for the unicode/SAMR password change scheme.Andrew Bartlett2004-01-261-7/+7
| | | | | | | | | | | As well as avoiding DOS charset issues, this scheme returns useful error codes, that we can map back via the pam interface. This patch also cleans up the interfaces used for password buffers, to avoid duplication of code. Andrew Bartlett (This used to be commit 2a2b1f0c872d154fbcce71a250e23dfad085ba1e)
* source/rpc_parse/parse_prs.c ZERO_STRUCTP(ps) not needed as it is doneHerb Lewis2004-01-141-1/+0
| | | | | | | | in prs_init now testsuite/printing/psec.c cannot do a prs_mem_free() when tdb_prs_fetch fails as the prs structure has not been initialized (This used to be commit a363e5d8c549861329506bd87c11d82ace5520e5)
* fix some warnings from the Sun compilerGerald Carter2004-01-091-4/+4
| | | | (This used to be commit ebabf72a78f0165521268b73e0fcabe1ea7834fd)
* commiting jra's fix for Exchange clear test authGerald Carter2004-01-071-1/+2
| | | | (This used to be commit 344e113368cb46fc4d26107d1cd276e4c76a6a9b)
* rpc_client/cli_lsarpc.c:Andrew Bartlett2004-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | rpc_parse/parse_lsa.c: nsswitch/winbindd_rpc.c: nsswitch/winbindd.h: - Add const libads/ads_ldap.c: - Cleanup function for use nsswitch/winbindd_ads.c: - Use new utility function ads_sid_to_dn - Don't search for 'dn=', rather call the ads_search_retry_dn() nsswitch/winbindd_ads.c: include/rpc_ds.h: rpc_client/cli_ds.c: - Fixup braindamage in cli_ds_enum_domain_trusts(): - This function was returning a UNISTR2 up to the caller, and was doing nasty (invalid, per valgrind) things with memcpy() - Create a new structure that represents this informaiton in a useful way and use talloc. Andrew Bartlett (This used to be commit 06c3f15aa166bb567d8be0a8bc4b095b167ab371)
* Add the alignment required before all 2-byte quantities in NDR. Allows usAndrew Bartlett2003-12-291-0/+3
| | | | | | | to correctly parse plaintext netlogon calls with odd-length passwords Andrew Bartlett (This used to be commit de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022)
* Fix UNISTR2 length bug in LsaQueryInfo(3) that cause SID resolution to fail ↵Gerald Carter2003-12-101-1/+1
| | | | | | on local files on on domain members; bug 875 (This used to be commit c6594e35573186966a4d57404f1c06b98670db06)
* fixed a problem with "net rpc vampire" mis-parsing the alias memberAndrew Tridgell2003-12-051-4/+4
| | | | | | | info reply Thanks to a bug report by 'musb' (This used to be commit 310f90f3689d4acd16368a833f23ea5f9aaa0133)
* * fix RemoveSidForeignDomain() ; bug 252Gerald Carter2003-12-041-6/+6
| | | | | | | | * don't fall back to unmapped UNIX group for get_local_group_from_sid() * remove an extra become/unbecome_root() pair from group enumeration (This used to be commit da12bbdb0dd9179b1ed457fa009679e2da4a8440)
* Add support for variable-length session keys in our client code.Andrew Bartlett2003-11-221-11/+11
| | | | | | | | | | | | | | This means that we now support 'net rpc join' with KRB5 (des based) logins. Now, you need to hack 'net' to do that, but the principal is important... When we add kerberos to 'net rpc', it should be possible to still do user management and the like over RPC. (server-side support to follow shortly) Andrew Bartlett (This used to be commit 9ecf9408d98639186b283f1acf0fac46417547d0)
* Changes all over the shop, but all towards:Andrew Bartlett2003-11-222-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NTLM2 support in the server - KEY_EXCH support in the server - variable length session keys. In detail: - NTLM2 is an extension of NTLMv1, that is compatible with existing domain controllers (unlike NTLMv2, which requires a DC upgrade). * This is known as 'NTLMv2 session security' * (This is not yet implemented on the RPC pipes however, so there may well still be issues for PDC setups, particuarly around password changes. We do not fully understand the sign/seal implications of NTLM2 on RPC pipes.) This requires modifications to our authentication subsystem, as we must handle the 'challege' input into the challenge-response algorithm being changed. This also needs to be turned off for 'security=server', which does not support this. - KEY_EXCH is another 'security' mechanism, whereby the session key actually used by the server is sent by the client, rather than being the shared-secret directly or indirectly. - As both these methods change the session key, the auth subsystem needed to be changed, to 'override' session keys provided by the backend. - There has also been a major overhaul of the NTLMSSP subsystem, to merge the 'client' and 'server' functions, so they both operate on a single structure. This should help the SPNEGO implementation. - The 'names blob' in NTLMSSP is always in unicode - never in ascii. Don't make an ascii version ever. - The other big change is to allow variable length session keys. We have always assumed that session keys are 16 bytes long - and padded to this length if shorter. However, Kerberos session keys are 8 bytes long, when the krb5 login uses DES. * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. * - Add better DEBUG() messages to ntlm_auth, warning administrators of misconfigurations that prevent access to the privileged pipe. This should help reduce some of the 'it just doesn't work' issues. - Fix data_blob_talloc() to behave the same way data_blob() does when passed a NULL data pointer. (just allocate) REMEMBER to make clean after this commit - I have changed plenty of data structures... (This used to be commit f3bbc87b0dac63426cda6fac7a295d3aad810ecc)
* Fix from Andrew Bartlett to fix up the munged-dial problem.Jeremy Allison2003-11-172-6/+16
| | | | | Jeremy. (This used to be commit 703b1b76e25fc83b3b84767c0e1b64c97c21bf09)
* * Fix from SATOH Fumiyasu for bug 660 (failing to view printGerald Carter2003-11-131-5/+7
| | | | | | | | | | | jobs) by only enforce the 'max reported print jobs' parameter when it is non-zero. * Fixed bug 338 by making sure that data values are written out when we are marshalling an EnumPrinterDataEx() reply. This probably fixes other bugs reported against point-n-print feature in 3.0.0 (This used to be commit fd98af75d655449a677360f6991da5caabc88b4d)
* fix crash bug due to empyrt munged dial string; patch from metzeGerald Carter2003-11-111-1/+1
| | | | (This used to be commit ccd5665a65de6ccfdb9a5f490be1a7b5de486e2a)
* Handle munged dial string. Patch from Aur?lien Degr?mont ↵Jeremy Allison2003-11-072-5/+35
| | | | | | | <adegremont@idealx.com>with memory leak fixes by me. Jeremy. (This used to be commit e591854eda8568ed1a4ad6b9de64e523c02b4392)
* Fix some uninitialised variable warnings.Tim Potter2003-11-031-2/+2
| | | | (This used to be commit 68945027b5dc6b5e1aee13e4df4d11a34e42a3a9)
* Add initshutdown pipe commands to rpcclient. Second part of fix to bugJim McDonough2003-10-241-0/+10
| | | | | #534 (This used to be commit 4e86243ea1d4bbe96720caaaf02300f5e15bee5a)
* This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2003-10-241-0/+163
|\ | | | | | | used to be commit e569418861a867437cd5e2cce87ad82e752da3fb)
| * New files for support of initshutdown pipe. Win2k doesn't respond properlyJim McDonough2003-10-241-0/+163
| | | | | | | | | | | | | | to all requests on the winreg pipe, so we need to handle this new pipe. First part of fix for bug #534 (This used to be commit 532fab74c12d8c55872c2bad2abead2647f919d7)
| * Be sure referent ID is updated for incoming structures, too.Jim McDonough2003-10-221-3/+13
| | | | | | | | (This used to be commit 00e0aba2cf97e686a0b6b4d7bab50afbc5e97ac1)
| * Fix typoJim McDonough2003-10-211-1/+1
| | | | | | | | (This used to be commit 26956cdef902819f94616c33694641752f0f14e9)
| * Update structures after ethereal showed some marshalling/unmarshallingJim McDonough2003-10-201-9/+35
| | | | | | | | | | errors. (This used to be commit 9d0f322a851f487cea320e57076213435e5c6481)
| * Several updates:Jim McDonough2003-10-201-3/+42
| | | | | | | | | | | | | | - add support for named pipe and netbios queries in parse code - fix map request structure...unknown byte was alignment - add sample of named pipe over netbios query in rpcclient (comment only) (This used to be commit 71dcdf54e60204d6b499d25d8759ed20fc7a021a)
| * Fix tower length calculations and add some constJim McDonough2003-10-181-4/+5
| | | | | | | | (This used to be commit 2f84c6c9a1c292535e73721a8bcdb27aaa2b2b46)
| * uuid itself might not be aligned (as is the case in epm map requests), soJim McDonough2003-10-171-3/+3
| | | | | | | | | | | | it needs to be aligned outside the smb_io_rpc_uuid() call if a specific rpc or struct needs it that way. (This used to be commit e9fc15d58c52c12438c1f9c69394c11f76ce72d8)
| * Add epmapper pipeJim McDonough2003-10-171-1/+11
| | | | | | | | (This used to be commit 041c17bd665ea5fa771b111d7008036fb3e7b72f)
| * Add (un)marshalling code for endpoint mapper map operationJim McDonough2003-10-171-0/+406
| | | | | | | | (This used to be commit bdd5158d9a45f4b935ea0fa495c0d83bc5ca96f8)
| * Merge from 3.0:Tim Potter2003-10-091-22/+2
| | | | | | | | | | | | | | | | >Remove duplicate function (now in rpc_parse/parse_prs.c) and fix a RPC debug >(I renamed the element of the structure). > >Andrew Bartlett (This used to be commit 2aaafa500780f7de0dec5632d53f3347b67fae4a)
| * Max warnings with gcc.Jeremy Allison2003-10-071-1/+3
| | | | | | | | | | Jeremy. (This used to be commit cdba166e31b3c611652783a2ab63e59f57f41fde)
| * split some security related functions in their own files.Simo Sorce2003-10-063-744/+32
| | | | | | | | | | | | | | (no need to include all of smbd files to use some basic sec functions) also minor compile fixes (This used to be commit 66074d3b097d8cf2a231bf08c7f4db62da68189d)
| * abstract UUID parsing code to an individual function; patch from AnthonyGerald Carter2003-10-031-7/+26
| | | | | | | | (This used to be commit 6cbdbdf9e1e76837c8ef03e795db11caa74ccf18)
| * commit sign only patch from Andrew; bug 167; tested using 2k & XP ↵Gerald Carter2003-10-012-63/+90
| | | | | | | | | | | | clientspreviously joined to the Samba domain (This used to be commit 9d2e585e5e6f9066c6901aa8d8308734f8667296)
| * Merge from 3.0:Tim Potter2003-09-299-537/+367
| | | | | | | | | | | | | | | | >Fix for #480. Change the interface for init_unistr2 to not take a length >but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. >This is not the case. Count it after conversion. >Jeremy. (This used to be commit e2ab9e54cd0ec0002175cf18ff364f4aebaf85a0)
| * Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison2003-09-191-9/+11
| | | | | | | | | | | | | | | | me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
| * The "unknown_5" 32 bit field in the user structs is actually 2 16-bitJeremy Allison2003-09-181-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | fields, bad_password_count and logon_count. Ensure this is stored/fetched in the various SAMs. As it replaces the unknown_5 field this fits exactly into the tdb SAM without any binary problems. It also is added to the LDAP SAM as two extra attributes. It breaks compatibility with the experimental SAMs xml and mysql. The maintainers of these SAMs must fix them so upgrades like this can be done transparently. I will insist on the "experimental" status until this is solved. Jeremy. (This used to be commit 71ecd10181cd35313b79f618c2928c2f45424812)
| * sync 3.0 into HEAD for the last timeGerald Carter2003-09-096-31/+39
| | | | | | | | (This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
| * port latest changes from SAMBA_3_0 treeSimo Sorce2003-08-024-135/+207
| | | | | | | | (This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
| * fix the build. Ifdef out some codeGerald Carter2003-07-171-8/+10
| | | | | | | | (This used to be commit e66541d0e1befec5d589890994454dd639ea0665)
| * trying to get HEAD building again. If you want the codeGerald Carter2003-07-168-326/+410
| | | | | | | | | | prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
| * * set winbind cache time to 5 minutesGerald Carter2003-06-031-1/+1
| | | | | | | | | | | | | | * quit obsessing over the sequence number so much * share the updated sequence number between parent and child winbindd processes in dual mode (This used to be commit 6fb5bdb30e2b1341ba600ce0dfd397394f7a831c)
| * Merge of secchan fix from 3.0 that was eaten by CVS yesterday. I thinkTim Potter2003-05-271-1/+1
| | | | | | | | | | it was becuase I ran out of disk quota. (This used to be commit 10cbec05a7bfe2fab54940329c5b348d5e524f29)
| * Fix an insufficient alloc when querying alias members.Volker Lendecke2003-05-241-1/+1
| | | | | | | | | | Volker (This used to be commit 9d2d570caa4dad194534249cd5e4dc4984b4002e)
| * parse_string is only used for the authentication negotiators.Volker Lendecke2003-04-222-11/+13
| | | | | | | | | | | | | | | | | | | | | | It can itself determine the length of the string it has to transfer. Andrew B., could you take a look at the length calculation? Is that safe? Thanks, Volker (This used to be commit d5f1082753f84f0e3a22739055b6b9cbde29faa9)
| * Survive a samdump with an alias that has no descriptionVolker Lendecke2003-04-181-3/+6
| | | | | | | | | | Volker (This used to be commit 408a94b64d4d799f256c11a2009e161b27553cbb)
| * Fixes to make SCHANNEL work against a W2K DC. Still need to fixJeremy Allison2003-04-162-15/+13
| | | | | | | | | | | | multi-PDU encode/decode with SCHANNEL. Also need to test against WNT DC. Jeremy. (This used to be commit ec82e8e9f4a6bf807a91ac265af39a516c7ab631)
* | Tut tut - always run with max warnings on gcc...Jeremy Allison2003-10-071-1/+3
| | | | | | | | | | Jeremy. (This used to be commit 3ebbd67dec2044ed8022491747e65b90f1354602)