author | natalie li - Sun Microsystems - Irvine United States <Natalie.Li@Sun.COM> |
Tue, 28 Oct 2008 03:34:04 -0700 | |
changeset 7961 | 4b5e3051f38b |
parent 7348 | 73b61202d5d6 |
child 8670 | 6da349c3f817 |
permissions | -rw-r--r-- |
5331 | 1 |
/* |
2 |
* CDDL HEADER START |
|
3 |
* |
|
4 |
* The contents of this file are subject to the terms of the |
|
5 |
* Common Development and Distribution License (the "License"). |
|
6 |
* You may not use this file except in compliance with the License. |
|
7 |
* |
|
8 |
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
* or http://www.opensolaris.org/os/licensing. |
|
10 |
* See the License for the specific language governing permissions |
|
11 |
* and limitations under the License. |
|
12 |
* |
|
13 |
* When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
* If applicable, add the following below this CDDL HEADER, with the |
|
16 |
* fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
* information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
* |
|
19 |
* CDDL HEADER END |
|
20 |
*/ |
|
21 |
/* |
|
6139
5c743b207bf9
6541120 Configuration is not propagated to SMB kernel module
jb150015
parents:
5331
diff
changeset
|
22 |
* Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
5331 | 23 |
* Use is subject to license terms. |
24 |
*/ |
|
25 |
||
26 |
#ifndef _SMBSRV_ADS_H |
|
27 |
#define _SMBSRV_ADS_H |
|
28 |
||
7348
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
29 |
#pragma ident "@(#)smbns_ads.h 1.4 08/07/16 SMI" |
5331 | 30 |
|
31 |
#include <sys/types.h> |
|
32 |
#include <stdlib.h> |
|
33 |
#include <netdb.h> |
|
34 |
#include <smbsrv/libsmbns.h> |
|
35 |
#include <smbsrv/string.h> |
|
36 |
||
37 |
#ifdef __cplusplus |
|
38 |
extern "C" { |
|
39 |
#endif |
|
40 |
||
41 |
/* |
|
42 |
* UserAccountControl flags: manipulate user account properties. |
|
43 |
* |
|
44 |
* The hexadecimal value of the following property flags are based on MSDN |
|
45 |
* article # 305144. |
|
46 |
*/ |
|
7052 | 47 |
#define SMB_ADS_USER_ACCT_CTL_SCRIPT 0x00000001 |
48 |
#define SMB_ADS_USER_ACCT_CTL_ACCOUNTDISABLE 0x00000002 |
|
49 |
#define SMB_ADS_USER_ACCT_CTL_HOMEDIR_REQUIRED 0x00000008 |
|
50 |
#define SMB_ADS_USER_ACCT_CTL_LOCKOUT 0x00000010 |
|
51 |
#define SMB_ADS_USER_ACCT_CTL_PASSWD_NOTREQD 0x00000020 |
|
52 |
#define SMB_ADS_USER_ACCT_CTL_PASSWD_CANT_CHANGE 0x00000040 |
|
53 |
#define SMB_ADS_USER_ACCT_CTL_ENCRYPTED_TEXT_PWD_ALLOWED 0x00000080 |
|
54 |
#define SMB_ADS_USER_ACCT_CTL_TMP_DUP_ACCT 0x00000100 |
|
55 |
#define SMB_ADS_USER_ACCT_CTL_NORMAL_ACCT 0x00000200 |
|
56 |
#define SMB_ADS_USER_ACCT_CTL_INTERDOMAIN_TRUST_ACCT 0x00000800 |
|
57 |
#define SMB_ADS_USER_ACCT_CTL_WKSTATION_TRUST_ACCT 0x00001000 |
|
58 |
#define SMB_ADS_USER_ACCT_CTL_SRV_TRUST_ACCT 0x00002000 |
|
59 |
#define SMB_ADS_USER_ACCT_CTL_DONT_EXPIRE_PASSWD 0x00010000 |
|
60 |
#define SMB_ADS_USER_ACCT_CTL_MNS_LOGON_ACCT 0x00020000 |
|
61 |
#define SMB_ADS_USER_ACCT_CTL_SMARTCARD_REQUIRED 0x00040000 |
|
62 |
#define SMB_ADS_USER_ACCT_CTL_TRUSTED_FOR_DELEGATION 0x00080000 |
|
63 |
#define SMB_ADS_USER_ACCT_CTL_NOT_DELEGATED 0x00100000 |
|
64 |
#define SMB_ADS_USER_ACCT_CTL_USE_DES_KEY_ONLY 0x00200000 |
|
65 |
#define SMB_ADS_USER_ACCT_CTL_DONT_REQ_PREAUTH 0x00400000 |
|
66 |
#define SMB_ADS_USER_ACCT_CTL_PASSWD_EXPIRED 0x00800000 |
|
67 |
#define SMB_ADS_USER_ACCT_CTL_TRUSTED_TO_AUTH_FOR_DELEGATION 0x01000000 |
|
5331 | 68 |
|
7052 | 69 |
typedef struct smb_ads_host_info { |
70 |
char name[MAXHOSTNAMELEN]; /* fully qualified hostname */ |
|
5331 | 71 |
int port; /* ldap port */ |
7348
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
72 |
int priority; /* DNS SRV record priority */ |
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
73 |
int weight; /* DNS SRV record weight */ |
5331 | 74 |
in_addr_t ip_addr; /* network byte order */ |
7052 | 75 |
} smb_ads_host_info_t; |
5331 | 76 |
|
7348
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
77 |
typedef struct smb_ads_host_list { |
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
78 |
int ah_cnt; |
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
79 |
smb_ads_host_info_t *ah_list; |
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
80 |
} smb_ads_host_list_t; |
73b61202d5d6
6584155 Confusing 'No such object' message is logged when a share is successfully published.
jose borrego <Jose.Borrego@Sun.COM>
parents:
7052
diff
changeset
|
81 |
|
7961
4b5e3051f38b
6751647 TRANS2_FIND_NEXT continuation by filename restarts search at beginning of directory
natalie li - Sun Microsystems - Irvine United States <Natalie.Li@Sun.COM>
parents:
7348
diff
changeset
|
82 |
smb_ads_host_info_t *smb_ads_find_host(char *, char *); |
7052 | 83 |
char *smb_ads_convert_directory(char *); |
5331 | 84 |
|
85 |
#ifdef __cplusplus |
|
86 |
} |
|
87 |
#endif |
|
88 |
||
89 |
#endif /* _SMBSRV_ADS_H */ |