r5988: Fix the -P option (use machine account credentials) to use the Samba4
[Samba/gebeck_regimport.git] / source4 / include / secrets.h
blob09cb0dda699c1d220e5e83d569c05cf88fcca69a
1 /*
2 * Unix SMB/CIFS implementation.
3 * secrets.tdb file format info
4 * Copyright (C) Andrew Tridgell 2000
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 675
18 * Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _SECRETS_H
22 #define _SECRETS_H
24 /* the first one is for the hashed password (NT4 style) the latter
25 for plaintext (ADS)
27 #define SECRETS_MACHINE_ACCT_PASS "SECRETS/$MACHINE.ACC"
28 #define SECRETS_MACHINE_PASSWORD "SECRETS/MACHINE_PASSWORD"
30 /* this one is for storing trusted domain account password */
31 #define SECRETS_DOMTRUST_ACCT_PASS "SECRETS/$DOMTRUST.ACC"
33 /* Store the principal name used for Kerberos DES key salt under this key name. */
34 #define SECRETS_SALTING_PRINCIPAL "SECRETS/SALTING_PRINCIPAL"
36 /* The domain sid and our sid are stored here even though they aren't
37 really secret. */
38 #define SECRETS_DOMAIN_SID "SECRETS/SID"
39 #define SECRETS_SAM_SID "SAM/SID"
41 /* The domain GUID and server GUID (NOT the same) are also not secret */
42 #define SECRETS_DOMAIN_GUID "SECRETS/DOMGUID"
43 #define SECRETS_SERVER_GUID "SECRETS/GUID"
45 #define SECRETS_LDAP_BIND_PW "SECRETS/LDAP_BIND_PW"
47 /* Authenticated user info is stored in secrets.tdb under these keys */
49 #define SECRETS_AUTH_USER "SECRETS/AUTH_USER"
50 #define SECRETS_AUTH_DOMAIN "SECRETS/AUTH_DOMAIN"
51 #define SECRETS_AUTH_PASSWORD "SECRETS/AUTH_PASSWORD"
53 /* structure for storing machine account password
54 (ie. when samba server is member of a domain */
55 struct machine_acct_pass {
56 uint8_t hash[16];
57 time_t mod_time;
60 #define SECRETS_PRIMARY_DOMAIN_DN "cn=Primary Domains"
62 #define SECRETS_PRIMARY_DOMAIN_FILTER "(&(flatname=%s)(objectclass=primaryDomain))"
63 #define SECRETS_PRIMARY_REALM_FILTER "(&(realm=%s)(objectclass=primaryDomain))"
65 #endif /* _SECRETS_H */