1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

445 Commits

Author SHA1 Message Date
Günther Deschner
b04a5e09f7 Use pidl for _samr_GetUserPwInfo().
Guenther
(This used to be commit 4e7236c10e5a1cbea2e961e196729603c66f37d6)
2008-02-05 09:56:42 +01:00
Günther Deschner
062820eaee Use pidl for _samr_AddGroupMember().
Guenther
(This used to be commit 4f923d970eac5841d1f67dbb8fc0c1dd1fda95a3)
2008-02-04 18:41:46 +01:00
Günther Deschner
4906b5037d Use pidl for _samr_DeleteGroupMember().
Guenther
(This used to be commit 94d6536809266ea3a12cd255fb7f2f7a70c42da3)
2008-02-04 18:32:24 +01:00
Günther Deschner
e1e8ab30f7 Use pidl for _samr_Connect5().
Guenther
(This used to be commit ca233bfe0e5350cb699312e4937c6bd1cb43f7c1)
2008-02-04 17:53:51 +01:00
Günther Deschner
867edaa33f Use pidl for _samr_Connect4().
Guenther
(This used to be commit ceb3b6a0a3ed15c04bdb518a28167531403cc928)
2008-02-04 17:53:51 +01:00
Günther Deschner
390746afea Use pidl for _samr_Connect2().
Guenther
(This used to be commit 35a691c2595883a7f15d039839de11798b9a7ceb)
2008-02-04 17:53:51 +01:00
Günther Deschner
2730ce9997 Use pidl for _samr_Connect().
Guenther
(This used to be commit 79c3aa6588c6d79a2127153dc0bcc75ecc468de8)
2008-02-04 17:53:50 +01:00
Günther Deschner
65172ba6b8 Use pidl for _samr_SetSecurity().
Guenther
(This used to be commit 6bfd76002f083f07b3d9d5c1f16e67614e7eb972)
2008-02-02 13:37:19 +01:00
Günther Deschner
f965f324f5 Use pidl for _samr_QuerySecurity().
Guenther
(This used to be commit c61cba97268f198ad7e25acc3cb0b166e897299d)
2008-02-02 13:37:19 +01:00
Günther Deschner
e7a82edd35 Use pidl for _samr_ChangePasswordUser2().
Guenther
(This used to be commit a142fe21e386233af658024b5a194eee0bc5c4ba)
2008-02-01 23:26:09 +01:00
Günther Deschner
f0438acfda Use pidl for _samr_CreateUser2().
Guenther
(This used to be commit 36f52b631c013f885ed25ea741a52f763d27198b)
2008-02-01 16:29:20 +01:00
Günther Deschner
6e74a5dba3 Use pidl for _samr_CreateDomainGroup().
Guenther
(This used to be commit c53bfd74251398924a1fae0fd8d9020dba958ba1)
2008-02-01 16:29:20 +01:00
Günther Deschner
3e67d648a1 Use pidl for _samr_CreateDomAlias().
Guenther
(This used to be commit 622d529c45aaa6d8ddd3a38a2fa4fc5e1ad53fe9)
2008-02-01 16:29:20 +01:00
Günther Deschner
1921a6d67e Use pidl for _samr_DeleteDomAlias().
Guenther
(This used to be commit 31d5a3aaa42c18319fd751aba65f435348b1e83e)
2008-02-01 10:04:35 +01:00
Günther Deschner
b36ad1d59b Use pidl for _samr_DeleteDomainGroup().
Guenther
(This used to be commit b8bf051bdda221dda15598e16bb8dbec68bc7df7)
2008-02-01 10:04:26 +01:00
Günther Deschner
145ff9a4b4 Use pidl for _samr_DeleteUser().
Guenther
(This used to be commit 86827e374469421e2204598712225fb19d4af64b)
2008-02-01 10:04:13 +01:00
Günther Deschner
846c3a3001 Use pidl for _samr_OpenGroup().
Guenther
(This used to be commit e74ad425ff3a139fa12c0320e4a292dcb0991888)
2008-02-01 09:57:30 +01:00
Günther Deschner
ecaa48925f Use pidl for _samr_OpenAlias().
Guenther
(This used to be commit 1a98282d2c61e45645c68941631eb0499baa4cbb)
2008-02-01 09:57:20 +01:00
Günther Deschner
645559990f Use pidl for _samr_OpenUser().
Guenther
(This used to be commit ea3a096bcdc42fd4a86be5df3e8f9745e99970ff)
2008-02-01 09:57:10 +01:00
Günther Deschner
fd15e9dd1c Use pidl for _samr_OpenDomain().
Guenther
(This used to be commit 15801832ecd59bdb35ed33696944fe5beb08bf3f)
2008-02-01 09:56:59 +01:00
Günther Deschner
8d8d955b98 Fix _samr_Close().
A good example that work in this area needs very careful testing :)

Guenther
(This used to be commit 7d369906ec37caebaa4e2097874997fa257f1a31)
2008-01-31 14:24:33 +01:00
Günther Deschner
2e2fa2c66e Use pidl for samr_GetDomPwInfo() server-side.
Guenther
(This used to be commit 60fe8ade74d24d49f0fed0aae360a3b00edcd2b4)
2008-01-31 13:39:37 +01:00
Günther Deschner
3d507a2fca Let _samr_Close() use pidl generated server code.
Guenther
(This used to be commit 2df3408079fc382d00d01a0b82b0b8e1ffeba6e4)
2008-01-31 11:20:13 +01:00
Volker Lendecke
99b86e4a26 Some C++ fixes
(This used to be commit 5c392c4c6e277a24d0d477902dc7856b2b46ee53)
2007-12-21 09:58:21 +01:00
Volker Lendecke
e518e19bc0 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
2007-12-19 21:09:10 +01:00
Michael Adam
4c8a708288 Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().
Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael
(This used to be commit 1d4e0ad1142c61de402c925306f02f5de2c872f6)
2007-12-17 13:05:54 +01:00
Volker Lendecke
2e07c2ade8 s/sid_to_string/sid_to_fstring/
least surprise for callers
(This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15 22:47:30 +01:00
Volker Lendecke
900288a2b8 Replace sid_string_static by sid_string_dbg in DEBUGs
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15 22:09:36 +01:00
Jeremy Allison
79266500cd Remove all pstrings from smbd/chgpasswd.c.
Jeremy.
(This used to be commit eaf14c701b08e9eff5b94bf57af68cb29142d7fc)
2007-11-12 15:02:50 -08:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
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-18 17:40:25 -07:00
Volker Lendecke
0ebab65706 r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
(This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
2007-10-10 12:31:12 -05:00
Michael Adam
c97fe37ea3 r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.

I hope these were really all there were.

Michael
(This used to be commit 9a28be220df622322857dfe102fa35e108f932dc)
2007-10-10 12:30:58 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Jim McDonough
9c3db7adf3 r23616: Fix bugzilla #4719: must change password is not set from usrmgr.exe.
This was only affecting the newer versions of usrmgr.exe, because they
use a user_info_25 struct.  The password is getting set separately
inside that code, so the password last set time was getting set from the
password change logic.

We also were not parsing a number of fields (like logon hours) from the
user_info_25.  That should also be fixed.
(This used to be commit afabd68b6ae874aceba708dc36808ed007ad496c)
2007-10-10 12:23:36 -05:00
Volker Lendecke
9e30a76c04 r22786: Some cleanup by Karolin Seeger: Remove unused pdb_find_alias, and change
return values of some alias-releated pdb functions from BOOL to NTSTATUS

Thanks :-)
(This used to be commit 590d2164b3a33250410338771e160f6ebd1aa89d)
2007-10-10 12:21:57 -05:00
Volker Lendecke
a0f9db7a16 r22767: Argl. Typed in 'svn ci' in the wrong branch. Revert.
(This used to be commit 2c5b951eba509e826a29775db992aca474476484)
2007-10-10 12:21:55 -05:00
Volker Lendecke
16ae8eff93 r22766: Merge from 3_0:
r22412 | obnox | 2007-04-20 14:23:36 +0200 (Fr, 20 Apr 2007) | 5 lines

Add a "deletelocalgroup" subcommand to net sam.

Thanks to Karolin Seeger <ks@sernet.de>.
(This used to be commit fb6ac8a5b247a961963a9b6a95cd6608c5b53d09)
2007-10-10 12:21:55 -05:00
Jeremy Allison
1e362c0e7f r22587: Ensure TALLOC_ZERO_ARRAY is consistent.
Jeremy.
(This used to be commit c3df5d08dd6a983f9d53dc6628a50e571d322e8d)
2007-10-10 12:19:47 -05:00
Jeremy Allison
6b605a9cd7 r22586: Add a modified version of Simo's patch.
Jeremy.
(This used to be commit 18f47f999d28af56e205cd20d10c72ff6f0a3846)
2007-10-10 12:19:47 -05:00
Jeremy Allison
12ba88574b r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
(This used to be commit f6fa3080fee1b20df9f1968500840a88cf0ee592)
2007-10-10 12:19:44 -05:00
Alexander Bokovoy
f4affb4382 r22505: Fix build
(This used to be commit cc38ffb9a45b008ab7bbc3299610bd0dfec13aa9)
2007-10-10 12:19:40 -05:00
Jim McDonough
70806db06a r22504: Fix bug Jerry found during his tutorial. Sorry :-(
Allows authorized users (e.g. BUILTIN\Administrators members) to
set attributes on an account, particularly "user cannot change
password".

add become_root() around updating attributes, after checking that
access has been granted.
(This used to be commit b1ab360519a1f67f50446ca8599e5b7aa58e7db3)
2007-10-10 12:19:40 -05:00
Stefan Metzmacher
56ba447668 r22001: change prototype of dump_data(), so that it takes unsigned char * now,
which matches what samba4 has.

also fix all the callers to prevent compiler warnings

metze
(This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10 12:18:59 -05:00
Volker Lendecke
0d91334fe7 r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
who did not run the idle events to drop ldap connections.

Volker
(This used to be commit af3308ce5a21220ff4c510de356dbaa6cf9ff997)
2007-10-10 12:18:33 -05:00
Gerald Carter
742a853875 r21635: Don't free talloc()'d memory. I wish people would check the callers
when changing how memory is allocated.
(This used to be commit 78bf4042dd22bf063846c58729d5b64be3fce8a8)
2007-10-10 12:18:19 -05:00
Volker Lendecke
2838d7499c r21563: Fix a memleak: We only need dispinfo structs for "our" and for the builtin
domain. Without this patch we leaked a DISPINFO for the (NULL) domain per
samr_connect*() call.

Volker
(This used to be commit 4423880ff47a94074c625a4f4f81c3b516faa644)
2007-10-10 12:18:14 -05:00
Volker Lendecke
f4a008424f r21551: Ok, this is more subtle. More tomorrow :-)
(This used to be commit f63189907efe857ef51ff91470ddb8d21b9a41fa)
2007-10-10 12:18:12 -05:00
Volker Lendecke
ab6a1df7a6 r21550: make disp_info_list static to get_samr_dispinfo_by_sid(), add a comment :-)
(This used to be commit fad2ee8aa3e99c31a0632a80b4a64dedb6e01495)
2007-10-10 12:18:12 -05:00
Volker Lendecke
eccb9b7962 r21549: Only create DISP_INFO structs for domain handles, the others don't need
them. It just does not make sense to do a querydispinfo on an alias handle...

This fixes a memleak: Every samr_connect*() call leaked a DISP_INFO for the
(NULL) sid.

More cleanup pending: Essentially, we only need the DISP_INFO cache for the
get_global_sam_sid() domain. BUILTIN is fixed and small enough, and there are
no other domains around where enumerations could happen.

This also removes the explicit builtin_domain flags. I don't think this is
worth it. If this makes a significant difference, then we have a *VERY* tuned
RPC layer...

Jeremy, please check this. If it's ok, we might want to merge it across.

Volker
(This used to be commit 0aceda68a825788895759e79de55b080ad3f971d)
2007-10-10 12:18:12 -05:00