smbd_join.c revision 148c5f43199ca0b43fc8e3b643aab11cd66ea327
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#include "smbd.h"
static void *smbd_locate_dc_thread(void *);
return (status);
smbd_set_netlogon_cred(void)
char *dom;
return (B_FALSE);
if (smb_match_netlogon_seqnum())
return (B_FALSE);
sizeof (kpasswd_srv));
return (B_FALSE);
return (B_FALSE);
sizeof (kpasswd_domain));
return (B_FALSE);
return (B_TRUE);
if (new_domain) {
return (new_domain);
smbd_locate_dc_start(void)
int rc;
NULL);
return (rc);
if (!smb_match_netlogon_seqnum()) {
(void) smbd_set_netlogon_cred();
return (NULL);
* Retrieve the kpasswd server from krb5.conf.
(void) trim_whitespace(++p);
static uint32_t
sizeof (nb_domain));
return (NT_STATUS_SUCCESS);
static uint32_t
!= SMBAUTH_SUCCESS) {
return (NT_STATUS_INTERNAL_ERROR);
return (status);
return (status);
return (NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND);