aboutsummaryrefslogtreecommitdiffstats
path: root/net/nss_ldap/files
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-04-25 08:07:20 +0800
committernectar <nectar@FreeBSD.org>2003-04-25 08:07:20 +0800
commit60d324e93d1c5dbe9daa14cc7e76584b31c18b69 (patch)
tree1b78bb0b23203bafa72f8c3b57d38c3f5a0fee05 /net/nss_ldap/files
parent45d3119e27dcea0ff2d29182ec5912726cdb5c91 (diff)
downloadfreebsd-ports-graphics-60d324e93d1c5dbe9daa14cc7e76584b31c18b69.tar.gz
freebsd-ports-graphics-60d324e93d1c5dbe9daa14cc7e76584b31c18b69.tar.zst
freebsd-ports-graphics-60d324e93d1c5dbe9daa14cc7e76584b31c18b69.zip
Add support for using nss_ldap in `compat' mode (i.e. as sources for
the `passwd_compat' and `group_compat' databases).
Diffstat (limited to 'net/nss_ldap/files')
-rw-r--r--net/nss_ldap/files/bsdnss.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/nss_ldap/files/bsdnss.c b/net/nss_ldap/files/bsdnss.c
index 598bdb7fe94..62095ba959e 100644
--- a/net/nss_ldap/files/bsdnss.c
+++ b/net/nss_ldap/files/bsdnss.c
@@ -46,6 +46,18 @@ static ns_mtab methods[] = {
{ NSDB_PASSWD, "endpwent", __nss_compat_setpwent, _nss_ldap_setpwent },
{ NSDB_PASSWD, "setpwent", __nss_compat_endpwent, _nss_ldap_endpwent },
+{ NSDB_GROUP_COMPAT, "getgrnam_r", __nss_compat_getgrnam_r, _nss_ldap_getgrnam_r },
+{ NSDB_GROUP_COMPAT, "getgrgid_r", __nss_compat_getgrgid_r, _nss_ldap_getgrgid_r },
+{ NSDB_GROUP_COMPAT, "getgrent_r", __nss_compat_getgrent_r, _nss_ldap_getgrent_r },
+{ NSDB_GROUP_COMPAT, "endgrent", __nss_compat_setgrent, _nss_ldap_setgrent },
+{ NSDB_GROUP_COMPAT, "setgrent", __nss_compat_endgrent, _nss_ldap_endgrent },
+
+{ NSDB_PASSWD_COMPAT, "getpwnam_r", __nss_compat_getpwnam_r, _nss_ldap_getpwnam_r },
+{ NSDB_PASSWD_COMPAT, "getpwuid_r", __nss_compat_getpwuid_r, _nss_ldap_getpwuid_r },
+{ NSDB_PASSWD_COMPAT, "getpwent_r", __nss_compat_getpwent_r, _nss_ldap_getpwent_r },
+{ NSDB_PASSWD_COMPAT, "endpwent", __nss_compat_setpwent, _nss_ldap_setpwent },
+{ NSDB_PASSWD_COMPAT, "setpwent", __nss_compat_endpwent, _nss_ldap_endpwent },
+
};