1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

25211 Commits

Author SHA1 Message Date
Günther Deschner
6913f986f4 net: add "-k" switch for kerberos authentication (in preparation for #5416).
Guenther
(This used to be commit 4cce94d464)
2008-07-31 13:53:53 +02:00
Günther Deschner
536c26aa02 libnetjoin: add use_kerberos flag.
Guenther
(This used to be commit 956c949dc7)
2008-07-31 13:53:37 +02:00
Günther Deschner
9294303943 rpc_client: use init_samr_CryptPassword(Ex) in client tools.
Guenther
(This used to be commit 97f7f9f21f)
2008-07-31 13:52:33 +02:00
Jeremy Allison
d701d23b60 Fix uninitialized variables.
Jeremy.
(This used to be commit 1db7e00a54)
2008-07-30 16:06:30 -07:00
Jeremy Allison
e29e81624e Fix duplicate gloabl warning.
Jeremy.
(This used to be commit 6da33797b0)
2008-07-30 15:01:33 -07:00
Tim Prouty
f18076cb32 Removed redundant logging from create_builtin_users and create_builtin_administrators
The Debug messages in create_builtin_users and create_builtin_users have now
been encapsulated in add_sid_to_builtin.
(This used to be commit ca153139b1)
2008-07-30 15:00:49 -07:00
Tim Prouty
097b27dbcc Enabled domain groups to be added to builtin groups at domain join time
Previously this was done at token creation time if the Administrators and Users
builtins hadn't been created yet.  A major drawback to this approach is that if
a customer is joined to a domain and decides they want to join a different
domain, the domain groups from this new domain will not be added to the
builtins.

It would be ideal if these groups could be added exclusively at domain join
time, but we can't rely solely on that because there are cases where winbindd
must be running to allocate new gids for the builtins.  In the future if there
is a way to allocate gids for builtins without running winbindd, this code
can be removed from create_local_nt_token.

- Made create_builtin_users and create_builtin_administrators non-static so
they can be called from libnet
- Added a new function to libnet_join that will make a best effort to add
domain administrators and domain users to BUILTIN\Administrators and
BUILTIN\Users, respectively.  If the builtins don't exist yet, winbindd must be
running to allocate new gids, but if the builtins already exist, the domain
groups will be added even if winbindd is not running.  In the case of a
failure the error will be logged, but the join will not be failed.
- Plumbed libnet_join_add_dom_rids_to_builtins into the join post processing.
(This used to be commit e92faf5996)
2008-07-30 14:06:36 -07:00
Tim Prouty
bbb02aa8e9 Refactored the code that adds Domain Admins to BUILTIN\Administrators to use the new helper functions.
- Modified create_builtin_administrators and add_builtin_administrators to take
in the domain sid to reduce the number of times it needs to be looked up.
- Changed create_builtin_administrators to call the new helper functions.
- Changed create_local_nt_token to call the new version of
create_builtin_administrators and handle the new error that can be returned.
- Made it more explicit that add_builtin_administrators is only called when
winbindd can't be pinged.
(This used to be commit f6411ccb4a)
2008-07-30 14:06:15 -07:00
Tim Prouty
fb41bb762f Refactored the code that adds Domain Users to BUILTIN\Users to use the new helper functions.
- Modified create_builtin_users to take in the domain sid to reduce the number
of times it needs to be looked up.
- Changed create_builtin_users to call the new helper functions.
- Changed create_local_nt_token to call the new version of create_builtin_users
and handle the new error that can be returned.
(This used to be commit 8d75d40b9f)
2008-07-30 14:06:00 -07:00
Tim Prouty
f738f9f7c9 Helper functions to enable domain groups to be added to builtin groups at domain join time
Added two new helper functions which wrap the raw pdb alias functions so they
can be more conveniently called while adding domain groups to builtin groups.
(This used to be commit 668ef31455)
2008-07-30 14:03:13 -07:00
Günther Deschner
84bc4ff546 rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
Guenther
(This used to be commit fef5809140)
2008-07-30 19:14:00 +02:00
Günther Deschner
3ea5c185ad build: fix some no previous prototype warnings.
Guenther
(This used to be commit 51062534fd)
2008-07-30 18:10:46 +02:00
Günther Deschner
3bdfcbac5c winbindd: handle trusted domains without sid.
Guenther
(This used to be commit 0c1efc6c89)
2008-07-30 17:09:58 +02:00
Günther Deschner
4356a45682 libwbclient: let wbcStringToSid handle the global NULL sid.
Guenther
(This used to be commit 09fed085be)
2008-07-30 17:08:31 +02:00
Günther Deschner
7a7902692a netapi: add NetGroupGetUsers example code.
Guenther
(This used to be commit 0298f7fe9e)
2008-07-30 16:55:19 +02:00
Günther Deschner
493fb24e37 netapi: add NetGroupGetUsers to public header.
Guenther
(This used to be commit d31f822b79)
2008-07-30 16:55:12 +02:00
Günther Deschner
cf2ac8f8db netapi: add NetGroupGetUsers skeleton.
GUenther
(This used to be commit 0b4e2687ae)
2008-07-30 16:55:05 +02:00
Günther Deschner
c24ed2b653 re-run make idl.
Guenther
(This used to be commit 93ff654897)
2008-07-30 16:54:58 +02:00
Günther Deschner
45b5175102 netapi: add NetGroupGetUsers to IDL.
Guenther
(This used to be commit 81be6207e5)
2008-07-30 16:54:50 +02:00
Günther Deschner
d1da171600 re-run make idl.
Guenther
(This used to be commit ec2a56b5e7)
2008-07-30 16:44:32 +02:00
Günther Deschner
92b1b52f40 netapi: add some more USER_INFO structs to IDL.
Guenther
(This used to be commit 49ea8984e9)
2008-07-30 16:44:25 +02:00
Günther Deschner
603688f4ab netapi: fix libnetapi_samr_lookup_user_map_USER_INFO.
Guenther
(This used to be commit 52218506d6)
2008-07-30 16:44:16 +02:00
Günther Deschner
44465215ff netapi: use "buffer" in libnetapi.
Guenther
(This used to be commit 80957bc1bc)
2008-07-30 16:43:47 +02:00
Günther Deschner
8c5c924f6f re-run make idl.
Guenther
(This used to be commit c4131c995d)
2008-07-30 16:43:39 +02:00
Günther Deschner
5656fac52b netapi: cosmetics, use "buffer" everywhere.
Guenther
(This used to be commit 25522f0de0)
2008-07-30 16:43:26 +02:00
Günther Deschner
3076cc4257 netapi: use init_samr_CryptPasswordEx and init_samr_CryptPassword.
Guenther
(This used to be commit 97106199f1)
2008-07-30 16:43:05 +02:00
Günther Deschner
21a8177ed2 rpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.
Guenther
(This used to be commit 87b6aac135)
2008-07-30 16:42:23 +02:00
Günther Deschner
b15d2dea75 netapi: implement NetUserSetInfo_r() for at least level 1007.
Guenther
(This used to be commit ff9bcd5773)
2008-07-30 16:40:37 +02:00
Günther Deschner
bcc944b21d netapi: add convert_USER_INFO_X_to_samr_user_info21 fn and use it NetUserAdd.
Guenther
(This used to be commit c3e4c7cb5f)
2008-07-30 16:40:28 +02:00
Günther Deschner
c9e707b9b5 re-run make idl.
Guenther
(This used to be commit 244ad49e6a)
2008-07-30 16:40:18 +02:00
Günther Deschner
cdc45cc2d2 netapi: add USER_INFO_X to IDL.
Guenther
(This used to be commit 6c8ee639ec)
2008-07-30 16:40:08 +02:00
Günther Deschner
8417316b58 netapi: add netapi testsuite.
Guenther
(This used to be commit 8b3149b4a6)
2008-07-30 16:35:38 +02:00
Günther Deschner
39c344a27f netapi: fix NetLocalGroupAdd.
Guenther
(This used to be commit d4594a7a03)
2008-07-30 16:34:49 +02:00
Michael Adam
1a6aecaea8 testparm: Display warning if invalid values are used.
This one came up while using "csc policy = disabled" instead of
"disable"... ;-)
(This used to be commit d01da44de7)
2008-07-30 16:31:09 +02:00
Karolin Seeger
669afbc291 pdb_interface: Fix typo in debug message.
Karolin
(This used to be commit e04da654c0)
2008-07-29 12:05:40 +02:00
Volker Lendecke
91df5551a4 Attempt to fix bug 5616
We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d00)
(This used to be commit b63a6a1fd6)
2008-07-28 18:07:01 +02:00
Michael Adam
d6b7f800d3 run "make idl" after idl change to unify Primary:Kerberos* structs (e8ae49f)
Michael
(This used to be commit 6dd1582e35)
2008-07-28 14:17:11 +02:00
Stefan Metzmacher
ace141e488 drsblobs.idl: unify the Primary:Kerberos and Primary:Kerberos-Newer-Keys structs
metze
(cherry picked from commit 4b79a76785)
(This used to be commit e8ae49fc2a)
2008-07-28 14:16:14 +02:00
Michael Adam
1ff0633e05 run "make idl" after idl change "give some unknowns a meaning" (67de745)
Michael
(This used to be commit e5d95c4f41)
2008-07-28 14:15:27 +02:00
Stefan Metzmacher
ced176a0ad drsblobs.idl: give some unknowns a meaning
metze
(cherry picked from commit 231e6f5ab2)
(This used to be commit 67de7455b6)
2008-07-28 14:10:17 +02:00
Michael Adam
3ed6cfad01 rpcclient: Set the pid filed of the outgoing DsBindInfo to 0.
This is for debugging and informational purposes only.
The assignment is implementation specific.
(WSPP docs, sec. 5.35).

Michael
(This used to be commit 18ea033909)
2008-07-28 14:08:34 +02:00
Volker Lendecke
a235676dd1 Fix a debug message
(This used to be commit 1970eed1b7)
2008-07-27 18:41:19 +02:00
Volker Lendecke
b117e10394 Remove a pointless CONST_DISCARD
(This used to be commit c63cb78b4c)
2008-07-27 18:37:00 +02:00
Volker Lendecke
2646fce633 Fix srvsvc_Net[Get|Set]FileSecurity
There were two bugs in those routines: They did not send INTERNAL_OPEN_ONLY to
open_file_ntcreate() and they did not chdir, so the file could never be found.

While there I decided to remove the become_root() calls and call create_file()
instead of the lower-level routines.
(This used to be commit 6697717384)
2008-07-27 17:59:15 +02:00
Volker Lendecke
49403ee82f Make create_conn_struct() public
(This used to be commit e115e25822)
2008-07-27 17:56:48 +02:00
Volker Lendecke
9b5adeaa39 Remove unused extern struct current_user from substitute.c
A bit hard to believe, but substitute.c does not use current_user anymore.
(This used to be commit de5d27d70a)
2008-07-27 00:22:30 +02:00
Volker Lendecke
b3f04dd32f Save 128 byte (32-bit platform) or 256 byte (64-bit) per connection_struct
This was just too easy not to use :-)
(This used to be commit a9922a2a36)
2008-07-26 16:52:02 +02:00
Volker Lendecke
33cbe2f88c make read/write to internal pipes available externally
(This used to be commit e11b5cb1e0)
2008-07-26 13:20:10 +02:00
Volker Lendecke
a803f0a920 Refactoring: Make close_internal_rpc_pipe_hnd a talloc destructor
(This used to be commit 10b47a0c2c)
2008-07-26 13:20:10 +02:00
Volker Lendecke
1ee37bc9c3 Refactor make_internal_rpc_pipe_p: connection_struct is not needed
(This used to be commit defcf0eecf)
2008-07-26 13:20:10 +02:00