summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_lsa.c
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14Use pidl for _lsa_RemoveAccountRights.Günther Deschner1-23/+1
Guenther (This used to be commit 39f8508f5d978a936779fdfd51b90fec4faa4301)
2008-02-14Use pidl for _lsa_EnumAccountRights().Günther Deschner1-23/+1
Guenther (This used to be commit cb6a84712cf91d104206356f0ac256a071868d66)
2008-02-14Use pidl for _lsa_AddAccountRights().Günther Deschner1-23/+1
Guenther (This used to be commit 253cf1523871f2218e9e59b0a01f47b8bc745ac9)
2008-02-14Use pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount.Günther Deschner1-46/+2
Guenther (This used to be commit 0c9904864b5c3b893f99abdebb18d9624aa0f560)
2008-02-14Use pidl for _lsa_LookupPrivValue().Günther Deschner1-23/+1
Guenther (This used to be commit 87dc2471d1c2a5be17604399d4f684193a6bba38)
2008-02-14Use pidl for _lsa_EnumPrivsAccount().Günther Deschner1-23/+1
Guenther (This used to be commit d7655932a7cb436f1ee44e443882e2f06d598aa0)
2008-02-14Use pidl for _lsa_EnumAccounts.Günther Deschner1-22/+1
Guenther (This used to be commit 07e5138ad960bce8569ea593ca9a1b4fbf2b1048)
2008-02-13Use pidl for _lsa_EnumTrustDom()Günther Deschner1-20/+1
Guenther (This used to be commit 1f45079907d03116b48b55d616281ed4359a66d8)
2008-02-11Use pidl for _lsa_GetUserName().Günther Deschner1-23/+1
Guenther (This used to be commit b24cf05dcad5696a7b948c93de9e995c2b53e80f)
2008-02-11Use pidl for _lsa_LookupPrivDisplayName().Günther Deschner1-22/+1
Guenther (This used to be commit c86640320199898cc5e3040bc3339db683e98da8)
2008-02-11Use pidl for _lsa_EnumPrivs().Günther Deschner1-22/+1
Guenther (This used to be commit 62944007315c1744e2d2db7db593bc72af4b643b)
2008-02-08Use pidl for _lsa_GetSystemAccessAccount().Günther Deschner1-23/+1
Guenther (This used to be commit aaf662a724f1bae5333666caf8b2fbe908f13992)
2008-02-08Use pidl for _lsa_SetSystemAccessAccount().Günther Deschner1-23/+1
Guenther (This used to be commit 478612b79d11fa1ad3bf16e317d63c2a00e1957a)
2008-02-08Use pidl for _lsa_OpenAccount().Günther Deschner1-23/+1
Guenther (This used to be commit e1968880a88ad2a56c5fef7d416646dcb96965ef)
2008-02-08Use pidl for _lsa_CreateAccount().Günther Deschner1-23/+2
Guenther (This used to be commit d71f56a293d67971c45ee44219752a55fb21f8be)
2008-02-08Use pidl for _lsa_QueryInfoPolicy().Günther Deschner1-23/+1
Guenther (This used to be commit 1b931e9145910a74b9e9661a9255cd79e434ffea)
2008-02-04Use pidl for (dummy) _lsa_DeleteObject().Günther Deschner1-23/+1
Guenther (This used to be commit 81e2e3a288fb40bf4ba1b83adf459a0cf6f02ed2)
2008-02-04Use pidl for _lsa_QuerySecurity().Günther Deschner1-23/+1
Guenther (This used to be commit 6b2f205844b1e2af4c74247fed13d6e383319067)
2008-02-04Use pidl for _lsa_OpenPolicy2().Günther Deschner1-23/+1
Guenther (This used to be commit fc29364abe10d3ec249602cb3437e50294f5de76)
2008-02-04Use pidl for _lsa_OpenPolicy().Günther Deschner1-23/+1
Guenther (This used to be commit b6b226e6365477f855de1e549ef32df452838031)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-36/+36
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r24561: merge from SAMBA_4_0:Stefan Metzmacher1-6/+6
rename some DCERPC_ prefixes into NDR_ metze (This used to be commit 8f07b8ab658ae3d63487ca5fb20065318cdd9d0e)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach1-1/+1
failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)
2007-10-10r19224: Add setting the rng_fault_state to the already converted pipes.Volker Lendecke1-136/+23
Convert the low-hanging fruit of the LSA server. This provides a sample how the server calls can be converted one by one, see the "proxy_lsa_call" function. Volker (This used to be commit 99e54a213ad3561ea6e8dc44c483847c18c5681e)
2007-10-10r13458: Add parsing functions - but stub internals for lookupnames3 and 4.Jeremy Allison1-1/+65
Jeremy. (This used to be commit f1a362580ae37730dc8393a79f832aed5d0ea4be)
2007-10-10r13456: Add lsa_lookup_names2.Jeremy Allison1-0/+32
Jeremy. (This used to be commit b57406c89feaf550f6c2d29ef0ed73a935908add)
2007-10-10r13447: Added LSA_LOOKUPSIDS2 and LSA_LOOKUPSIDS3.Jeremy Allison1-1/+63
Jeremy. (This used to be commit a164cfab420a2439dad8fd85f8b4d652087fa6b9)
2007-10-10r7139: trying to reduce the number of diffs between trunk and 3.0; changing ↵Gerald Carter1-1/+158
version to 3.0.20pre1 (This used to be commit 9727d05241574042dd3aa8844ae5c701d22e2da1)
2007-10-10r5726: merge LsaLookupPrivValue() code from trunkGerald Carter1-1/+39
(This used to be commit 277203b5356af58ce62eb4eec0db2eccadeeffd6)
2007-10-10r4746: add server support for lsa_enum_acct_rights(); last checkin for the nightGerald Carter1-0/+32
(This used to be commit ccdff4a998405544433aa32938963e4c37962fcc)
2007-10-10r4742: add server support for lsa_add/remove_account_rights() and fix some ↵Gerald Carter1-1/+65
parsing bugs related to that code (This used to be commit 7bf1312287cc1ec6b97917ba25fc60d6db09f26c)
2007-10-10r4724: Add support for Windows privileges in Samba 3.0Gerald Carter1-0/+32
(based on Simo's code in trunk). Rewritten with the following changes: * privilege set is based on a 32-bit mask instead of strings (plans are to extend this to a 64 or 128-bit mask before the next 3.0.11preX release). * Remove the privilege code from the passdb API (replication to come later) * Only support the minimum amount of privileges that make sense. * Rewrite the domain join checks to use the SeMachineAccountPrivilege instead of the 'is a member of "Domain Admins"?' check that started all this. Still todo: * Utilize the SePrintOperatorPrivilege in addition to the 'printer admin' parameter * Utilize the SeAddUserPrivilege for adding users and groups * Fix some of the hard coded _lsa_*() calls * Start work on enough of SAM replication to get privileges from one Samba DC to another. * Come up with some management tool for manipultaing privileges instead of user manager since it is buggy when run on a 2k client (haven't tried xp). Works ok on NT4. (This used to be commit 77c10ff9aa6414a31eece6dfec00793f190a9d6c)
2003-10-06split some security related functions in their own files.Simo Sorce1-1/+1
(no need to include all of smbd files to use some basic sec functions) also minor compile fixes couldn't compile to test these due to some kerberos problems wirh 3.0, but on HEAD they're working well, so I suppose it's ok to commit (This used to be commit c78f2d0bd15ecd2ba643bb141cc35a3405787aa1)
2003-08-14Attempt at fixing bug #283. There however is no solution.Gerald Carter1-14/+29
There is a workaround documented in the bug report. This patch does: * add server support for the LSA_DS UUID on the lsarpc pipe * store a list of context_ids/api_structs in the pipe_struct so that we don't have to lookup the function table for a pipe. We just match the context_id. Note that a dce/rpc alter_context does not destroy the previous context so it is possible to have multiple bindings active on the same pipe. Observed from standalone win2k sp4 client. * added server code for DsROleGetPrimaryDOmainInfo() but disabled it since it causes problems enumerating users and groups from a 2ksp4 domain member in a Samba domain. (This used to be commit 96bc2abfcb0dd0912696fad76e43cb217b33e061)
2003-08-01Update my copyrights according to my agreement with IBMJim McDonough1-1/+1
(This used to be commit a2bd8f0bfa12f2a1e33c96bc9dabcc0e2171700d)
2003-08-01Fix copyright statements for various pieces of Anthony Liguori's work.Jim McDonough1-2/+1
(This used to be commit 15d2bc47854df75f8b2644ccbc887d0357d9cd27)
2003-05-22fixes bugs 85 & 99 (XP domain logons); don't enable the lsa_query_info2 ↵Gerald Carter1-1/+13
unless we are trying to be an ADS DC (This used to be commit bf20976e5a993f4cfa05c1e0a9ecab2c7da99263)
2003-04-28Use NTSTATUS as return value for smb_register_*() functions and init_module()Jelmer Vernooij1-2/+2
function. Patch by metze with some minor modifications. (This used to be commit bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d)
2003-04-15use the new modules system for the rpc modules (backport from HEAD)Jelmer Vernooij1-4/+0
(This used to be commit aca7319e8d45eb604f28b8bd490413b08e2c98f2)
2003-02-14merge from HEAD - enable dynamic RPC modulesJim McDonough1-10/+11
(This used to be commit d9c485b01017594d113502f9de2248d6c120cfa3)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-1/+1
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2002-08-17Sync 3.0 branch with HEADJelmer Vernooij1-2/+35
(This used to be commit e01596853e3eea533baa08c33f26ded75f33fdd4)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-0/+5
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-14add lsa_query_secobj server code. level 4 is the ACL, level 1 is theJean-François Micouleau1-0/+31
owner. that's basic stuff. got the POLICY_ define from TNG but they are also in an include file in the NT SDK. J.F. (This used to be commit 84289a9bf42847981926e198ad36c050904fa9ed)
2001-11-29Changed again how the privilege list is handled in the group mapping code.Jean-François Micouleau1-14/+111
This time it's a PRIVILEGE_SET struct instead of a simple uint32 array. It makes much more sense. Also added a uint32 systemaccount to the GROUP_MAP struct as some privilege showing in USRMGR.EXE are not real privs but a bitmask flag. I guess it's an heritage from NT 3.0 ! I could setup an NT 3.1 box to verify, but I'm too lazy (yes I still have my CDs). Added 3 more LSA calls: SetSystemAccount, AddPrivileges and RemovePrivileges, we can manage all this privilege from UserManager. Time to change the NT_USER_TOKEN struct and add checks in all the rpc functions. Fun, fun, fun. J.F. (This used to be commit 3f0a9ef2b8c626cfa2878394bb7b642342342bf3)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-07-09implement:Jean-François Micouleau1-0/+190
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)