include/secrets.h

説明を見る。
00001 /*
00002  * Unix SMB/CIFS implementation. 
00003  * secrets.tdb file format info
00004  * Copyright (C) Andrew Tridgell              2000
00005  * 
00006  * This program is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU General Public License as published by the
00008  * Free Software Foundation; either version 2 of the License, or (at your
00009  * option) any later version.
00010  * 
00011  * This program is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
00014  * more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License along with
00017  * this program; if not, write to the Free Software Foundation, Inc., 675
00018  * Mass Ave, Cambridge, MA 02139, USA.  
00019  */
00020 
00021 #ifndef _SECRETS_H
00022 #define _SECRETS_H
00023 
00024 /* the first one is for the hashed password (NT4 style) the latter
00025    for plaintext (ADS)
00026 */
00027 #define SECRETS_MACHINE_ACCT_PASS "SECRETS/$MACHINE.ACC"
00028 #define SECRETS_MACHINE_PASSWORD "SECRETS/MACHINE_PASSWORD"
00029 #define SECRETS_MACHINE_LAST_CHANGE_TIME "SECRETS/MACHINE_LAST_CHANGE_TIME"
00030 #define SECRETS_MACHINE_SEC_CHANNEL_TYPE "SECRETS/MACHINE_SEC_CHANNEL_TYPE"
00031 #define SECRETS_MACHINE_TRUST_ACCOUNT_NAME "SECRETS/SECRETS_MACHINE_TRUST_ACCOUNT_NAME"
00032 /* this one is for storing trusted domain account password */
00033 #define SECRETS_DOMTRUST_ACCT_PASS "SECRETS/$DOMTRUST.ACC"
00034 
00035 /* Store the principal name used for Kerberos DES key salt under this key name. */
00036 #define SECRETS_SALTING_PRINCIPAL "SECRETS/SALTING_PRINCIPAL"
00037 
00038 /* The domain sid and our sid are stored here even though they aren't
00039    really secret. */
00040 #define SECRETS_DOMAIN_SID    "SECRETS/SID"
00041 #define SECRETS_SAM_SID       "SAM/SID"
00042 
00043 /* The domain GUID and server GUID (NOT the same) are also not secret */
00044 #define SECRETS_DOMAIN_GUID   "SECRETS/DOMGUID"
00045 #define SECRETS_SERVER_GUID   "SECRETS/GUID"
00046 
00047 #define SECRETS_LDAP_BIND_PW "SECRETS/LDAP_BIND_PW"
00048 
00049 /* Authenticated user info is stored in secrets.tdb under these keys */
00050 
00051 #define SECRETS_AUTH_USER      "SECRETS/AUTH_USER"
00052 #define SECRETS_AUTH_DOMAIN      "SECRETS/AUTH_DOMAIN"
00053 #define SECRETS_AUTH_PASSWORD  "SECRETS/AUTH_PASSWORD"
00054 
00055 /* structure for storing machine account password
00056    (ie. when samba server is member of a domain */
00057 struct machine_acct_pass {
00058         uint8 hash[16];
00059         time_t mod_time;
00060 };
00061 
00062 /*
00063  * storage structure for trusted domain
00064  */
00065 typedef struct trusted_dom_pass {
00066         size_t uni_name_len;
00067         smb_ucs2_t uni_name[32]; /* unicode domain name */
00068         size_t pass_len;
00069         fstring pass;           /* trust relationship's password */
00070         time_t mod_time;
00071         DOM_SID domain_sid;     /* remote domain's sid */
00072 } TRUSTED_DOM_PASS;
00073 
00074 /*
00075  * trusted domain entry/entries returned by secrets_get_trusted_domains
00076  * (used in _lsa_enum_trust_dom call)
00077  */
00078 struct trustdom_info {
00079         char *name;
00080         DOM_SID sid;
00081 };
00082 
00083 /*
00084  * Format of an OpenAFS keyfile
00085  */
00086 
00087 #define SECRETS_AFS_MAXKEYS 8
00088 
00089 struct afs_key {
00090         uint32 kvno;
00091         char key[8];
00092 };
00093 
00094 struct afs_keyfile {
00095         uint32 nkeys;
00096         struct afs_key entry[SECRETS_AFS_MAXKEYS];
00097 };
00098 
00099 #define SECRETS_AFS_KEYFILE "SECRETS/AFS_KEYFILE"
00100 
00101 #define SECRETS_SCHANNEL_STATE "SECRETS/SCHANNEL"
00102 
00103 #endif /* _SECRETS_H */

Sambaに対してSat Aug 29 21:22:57 2009に生成されました。  doxygen 1.4.7