mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r5983: Start support for being a domain member in Samba4.
This adds the auth_domain module to the auth subsystem, and cleans up some small details around the join process (ensuring all the right info is in the DB). Andrew Bartlett
This commit is contained in:
parent
6149bd3702
commit
858cbfb821
@ -35,6 +35,18 @@ REQUIRED_SUBSYSTEMS = \
|
||||
# End MODULE auth_winbind
|
||||
#######################
|
||||
|
||||
#######################
|
||||
# Start MODULE auth_domain
|
||||
[MODULE::auth_domain]
|
||||
INIT_FUNCTION = auth_domain_init
|
||||
SUBSYSTEM = AUTH
|
||||
INIT_OBJ_FILES = \
|
||||
auth/auth_domain.o
|
||||
REQUIRED_SUBSYSTEMS = \
|
||||
NDR_NETLOGON LIBNDR
|
||||
# End MODULE auth_winbind
|
||||
#######################
|
||||
|
||||
#######################
|
||||
# Start MODULE auth_developer
|
||||
[MODULE::auth_developer]
|
||||
|
@ -386,7 +386,7 @@ static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,
|
||||
samdb_msg_add_string(ldb, mem_ctx, msg, "objectClass", "primaryDomain");
|
||||
samdb_msg_add_string(ldb, mem_ctx, msg, "secret", r2.generic.out.join_password);
|
||||
|
||||
samdb_msg_add_string(ldb, mem_ctx, msg, "accountName", r2.generic.in.account_name);
|
||||
samdb_msg_add_string(ldb, mem_ctx, msg, "samAccountName", r2.generic.in.account_name);
|
||||
|
||||
samdb_msg_add_string(ldb, mem_ctx, msg, "secureChannelType", sct);
|
||||
|
||||
@ -423,7 +423,7 @@ static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,
|
||||
prior_modified_time);
|
||||
}
|
||||
|
||||
samdb_msg_set_string(ldb, mem_ctx, msg, "accountName", r2.generic.in.account_name);
|
||||
samdb_msg_set_string(ldb, mem_ctx, msg, "samAccountName", r2.generic.in.account_name);
|
||||
samdb_msg_set_string(ldb, mem_ctx, msg, "secureChannelType", sct);
|
||||
|
||||
/* update the secret */
|
||||
|
@ -19,6 +19,7 @@ objectClass: primaryDomain
|
||||
flatname: ${DOMAIN}
|
||||
realm: ${REALM}
|
||||
secret: ${JOINPASS}
|
||||
sAMAccountName: ${NETBIOSNAME}$
|
||||
whenCreated: ${LDAPTIME}
|
||||
whenChanged: ${LDAPTIME}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user