mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
9c715da1cb
pdb_ads was an important module in the development of the combined Samba 4.0, and was the first module to show that standard samba3 tools such as smbpasswd can be made to operate on the sam.ldb. We now have pdb_samba4, which operates directly on the sam.ldb, rather than via ldapi://, which uses transactions and which is supported and tested as part of the official Samba 4.0 release configuration. This module is not as complete (for example, it does not honour the idmap configuration) and requires that the samba binary be running to operate. Andrew Bartlett
54 lines
2.1 KiB
Python
54 lines
2.1 KiB
Python
#!/usr/bin/env python
|
|
|
|
PDB_TDBSAM_SRC = 'pdb_tdb.c'
|
|
PDB_LDAP_SRC = 'pdb_ldap.c pdb_nds.c pdb_ipa.c pdb_ldap_util.c'
|
|
PDB_SMBPASSWD_SRC = 'pdb_smbpasswd.c'
|
|
PDB_WBC_SAM_SRC = 'pdb_wbc_sam.c'
|
|
|
|
bld.SAMBA3_MODULE('pdb_tdbsam',
|
|
subsystem='pdb',
|
|
source=PDB_TDBSAM_SRC,
|
|
deps='samba-util tdb_compat dbwrap tdb-wrap3',
|
|
init_function='',
|
|
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
|
|
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
|
|
|
|
bld.SAMBA3_MODULE('pdb_ldap',
|
|
subsystem='pdb',
|
|
deps='smbldap',
|
|
source=PDB_LDAP_SRC,
|
|
init_function='',
|
|
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_ldap'),
|
|
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_ldap') and bld.env.HAVE_LDAP)
|
|
|
|
bld.SAMBA3_MODULE('pdb_smbpasswd',
|
|
subsystem='pdb',
|
|
source=PDB_SMBPASSWD_SRC,
|
|
deps='samba-util',
|
|
init_function='',
|
|
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_smbpasswd'),
|
|
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_smbpasswd'))
|
|
|
|
bld.SAMBA3_MODULE('pdb_wbc_sam',
|
|
subsystem='pdb',
|
|
source=PDB_WBC_SAM_SRC,
|
|
deps='samba-util wbclient',
|
|
init_function='',
|
|
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_wbc_sam'),
|
|
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_wbc_sam'))
|
|
|
|
bld.SAMBA3_MODULE('pdb_samba4',
|
|
subsystem='pdb',
|
|
source='pdb_samba4.c',
|
|
init_function='',
|
|
deps='IDMAP samdb',
|
|
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
|
|
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba4') and bld.AD_DC_BUILD_IS_ENABLED())
|
|
|
|
bld.SAMBA3_PYTHON('pypassdb',
|
|
source='py_passdb.c',
|
|
deps='pdb',
|
|
public_deps='samba-util tdb_compat talloc pyrpc_util',
|
|
realname='samba/samba3/passdb.so'
|
|
)
|