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

25225 Commits

Author SHA1 Message Date
Michael Adam
0f98b99483 dssync: record the bind info in the new remote_info28 in libnet_dssync_bind().
This extracts the info24 data in case this is what was returned (instead of info28).
E.g. windows 2000 returns info24.

Michael
(This used to be commit 61b41aa615)
2008-08-01 16:04:41 +02:00
Michael Adam
55b2d50926 dssync: add a drsuapi_DsBindInfo28 struct to the dssync_context struct
to keep track of what the server told us upon DsBind.

Michael
(This used to be commit bf17d6af61)
2008-08-01 16:04:40 +02:00
Michael Adam
9f6af6fe7c dssync keytab: wrap printing of the uptodate vector in DEBUGLEVEL >= 10 checks
Michael
(This used to be commit 7fabe2567d)
2008-08-01 16:04:40 +02:00
Michael Adam
0db26805da dssync keytab: add support for keeping track of the up-to-date-ness vector.
The startup operation should get the old up-to-date-ness vector from the backend
and the finish operation should store the new vector to the backend after replication.

This adds the change of the signatures of the operations ot the dssync_ops struct
and the implementation for the keytab ops. The up-to-date-ness vector is stored
under the principal constructed as UTDV/$naming_context_dn@$dns_domain_name.

The vector is still uninterpreted in libnet_dssync_process().
This will be the next step...

This code is essentially by Metze.

Michael
(This used to be commit 01318fb27a)
2008-08-01 16:04:40 +02:00
Michael Adam
54d6ae09e2 libnet_keytab: add a libnet_keytab_search() function
that searches and fetches an entry from a keytab file by principal and kvno.

This code is by metze.

Michael
(This used to be commit a51a60066b)
2008-08-01 16:04:40 +02:00
Michael Adam
7bd3ea0b6f dssync keytab: use add_to_keytab_entries() for pwd history in parse_object().
Michael
(This used to be commit 61f071de92)
2008-08-01 16:04:40 +02:00
Michael Adam
764691fdd1 dssync keytab: add prefix parameter to add_to_keytab_entries() for flexibility.
This will allow to construct principals of the form PREFIX/name@domain

Michael
(This used to be commit 7dd32b56a6)
2008-08-01 16:04:40 +02:00
Michael Adam
c1b9eb278f dssync keytab: add check for success of ADD_TO_ARRAY().
Michael
(This used to be commit e6f6e61da4)
2008-08-01 16:04:39 +02:00
Michael Adam
2473888daa dssync keytab: refactor adding entry to keytab_context out into new function
add_to_keytab_entries()

Michael
(This used to be commit 79151db6ea)
2008-08-01 16:04:39 +02:00
Michael Adam
16c2190b14 dssync: replace the processing_fn by startup/process/finish ops.
This remove static a variable for the keytab context in the keytab
processing function and simplifies the signature. The keytab context
is instead in the new private data member of the dssync_context struct.

This is in preparation of adding support for keeping track of the
up-to-date-ness vector, in order to be able to sync diffs instead
of the whole database.

Michael
(This used to be commit c51c3339f3)
2008-08-01 16:04:39 +02:00
Günther Deschner
52a8501515 netapi: when using NetApi functions forward net's kerberos setting.
Guenther
(This used to be commit d46f648d2e)
2008-07-31 15:26:15 +02:00
Günther Deschner
23e9ebb0d4 net: Use NetLocalGroupAdd() for adding aliases.
Guenther
(This used to be commit 2ed4ce0bf1)
2008-07-31 15:15:55 +02:00
Günther Deschner
4b74ae0f15 netapi: in NetLocalGroupAdd_r() only set description if necessary.
Guenther
(This used to be commit 7e9fa2c539)
2008-07-31 15:15:39 +02:00
Günther Deschner
1c1c83ab8d libnetunjoin: add use_kerberos flag.
Guenther
(This used to be commit 2b262ca20d)
2008-07-31 14:35:16 +02:00
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