smb_info.c revision 7f667e74610492ddbce8ce60f52ece95d2401949
d6c23f6fbecbcca8ddd2b74c6e10f37095f9fd46yx * CDDL HEADER START
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * The contents of this file are subject to the terms of the
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * Common Development and Distribution License (the "License").
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * You may not use this file except in compliance with the License.
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * See the License for the specific language governing permissions
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * and limitations under the License.
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * When distributing Covered Code, include this CDDL HEADER in each
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * If applicable, add the following below this CDDL HEADER, with the
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * fields enclosed by brackets "[]" replaced with your own identifying
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh * information: Portions Copyright [yyyy] [name of copyright owner]
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh * CDDL HEADER END
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * Use is subject to license terms.
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz (void) smb_config_getnum(SMB_CI_MAX_CONNECTIONS, &citem);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_restrict_anon = smb_config_getbool(SMB_CI_RESTRICT_ANON);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_signing_enable = smb_config_getbool(SMB_CI_SIGNING_ENABLE);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_signing_required = smb_config_getbool(SMB_CI_SIGNING_REQD);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_ipv6_enable = smb_config_getbool(SMB_CI_IPV6_ENABLE);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_oplock_enable = smb_config_getbool(SMB_CI_OPLOCK_ENABLE);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz kcfg->skc_sync_enable = smb_config_getbool(SMB_CI_SYNC_ENABLE);
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz (void) smb_config_getstr(SMB_CI_SYS_CMNT, kcfg->skc_system_comment,
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * Get the current system NetBIOS name. The hostname is truncated at
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * the first `.` or 15 bytes, whichever occurs first, and converted
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * to uppercase (by smb_gethostname). Text that appears after the
ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4yz * first '.' is considered to be part of the NetBIOS scope.
if (upcase)
int rc;
smb_getdomainsid(void)
int security_mode;
int rc;
return (NULL);
return (NULL);
return (NULL);
return (sid);
int rc;
rc = 0;
return (rc);
== SMBD_SMF_OK)
rc = 0;
return (rc);
smb_trace(const char *s)
unsigned int cpid;
int len;
len = 0;
if (rc > 0)
if (len) {
int i, cnt;
for (i = 0; i < cnt; i++) {
if (i >= sz)
INET_ADDRSTRLEN)) {
INET6_ADDRSTRLEN)) {
* /etc/nsswitch.conf and the NetBIOS cache.
struct hostent *
struct hostent *h;
* /etc/nsswitch.conf and the NetBIOS cache.
struct hostent *
struct hostent *h;
int rc;
if (rc != 0)
return (B_FALSE);