| 1 | /*
|
|---|
| 2 | Unix SMB/CIFS mplementation.
|
|---|
| 3 | LDAP protocol helper functions for SAMBA
|
|---|
| 4 | Copyright (C) Gerald Carter 2001-2003
|
|---|
| 5 |
|
|---|
| 6 | This program is free software; you can redistribute it and/or modify
|
|---|
| 7 | it under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 3 of the License, or
|
|---|
| 9 | (at your option) any later version.
|
|---|
| 10 |
|
|---|
| 11 | This program is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 18 |
|
|---|
| 19 | */
|
|---|
| 20 |
|
|---|
| 21 | #ifndef _SMBLDAP_H
|
|---|
| 22 | #define _SMBLDAP_H
|
|---|
| 23 |
|
|---|
| 24 | struct smbldap_state;
|
|---|
| 25 |
|
|---|
| 26 | #ifdef HAVE_LDAP
|
|---|
| 27 |
|
|---|
| 28 | /* specify schema versions between 2.2. and 3.0 */
|
|---|
| 29 |
|
|---|
| 30 | #define SCHEMAVER_SAMBAACCOUNT 1
|
|---|
| 31 | #define SCHEMAVER_SAMBASAMACCOUNT 2
|
|---|
| 32 |
|
|---|
| 33 | /* objectclass names */
|
|---|
| 34 |
|
|---|
| 35 | #define LDAP_OBJ_SAMBASAMACCOUNT "sambaSamAccount"
|
|---|
| 36 | #define LDAP_OBJ_SAMBAACCOUNT "sambaAccount"
|
|---|
| 37 | #define LDAP_OBJ_GROUPMAP "sambaGroupMapping"
|
|---|
| 38 | #define LDAP_OBJ_DOMINFO "sambaDomain"
|
|---|
| 39 | #define LDAP_OBJ_IDPOOL "sambaUnixIdPool"
|
|---|
| 40 | #define LDAP_OBJ_IDMAP_ENTRY "sambaIdmapEntry"
|
|---|
| 41 | #define LDAP_OBJ_SID_ENTRY "sambaSidEntry"
|
|---|
| 42 | #define LDAP_OBJ_TRUST_PASSWORD "sambaTrustPassword"
|
|---|
| 43 | #define LDAP_OBJ_TRUSTDOM_PASSWORD "sambaTrustedDomainPassword"
|
|---|
| 44 |
|
|---|
| 45 | #define LDAP_OBJ_ACCOUNT "account"
|
|---|
| 46 | #define LDAP_OBJ_POSIXACCOUNT "posixAccount"
|
|---|
| 47 | #define LDAP_OBJ_POSIXGROUP "posixGroup"
|
|---|
| 48 | #define LDAP_OBJ_OU "organizationalUnit"
|
|---|
| 49 |
|
|---|
| 50 | /* some generic attributes that get reused a lot */
|
|---|
| 51 |
|
|---|
| 52 | #define LDAP_ATTRIBUTE_SID "sambaSID"
|
|---|
| 53 | #define LDAP_ATTRIBUTE_UIDNUMBER "uidNumber"
|
|---|
| 54 | #define LDAP_ATTRIBUTE_GIDNUMBER "gidNumber"
|
|---|
| 55 | #define LDAP_ATTRIBUTE_SID_LIST "sambaSIDList"
|
|---|
| 56 |
|
|---|
|
|---|