mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
2e567b748d
sssd integrates the functionality of pam_krb5 and pam_ldap/nss_ldap with caching and additional features. This project provides a set of daemons to manage access to remote directories and authentication mechanisms, it provides an NSS and PAM interface toward the system and a pluggable backend system to connect to multiple different account sources. It is also the basis to provide client auditing and policy services for projects like FreeIPA. sssd also features caching, which can allow for offline use to assist laptop users. WWW: https://fedorahosted.org/sssd/ PR: ports/161555 Submitted by: Andrew Elble <aweits@rit.edu>
32 lines
957 B
C
32 lines
957 B
C
--- ./src/util/find_uid.c.orig 2011-08-29 11:39:05.000000000 -0400
|
|
+++ ./src/util/find_uid.c 2011-10-13 12:15:03.000000000 -0400
|
|
@@ -67,7 +67,7 @@
|
|
uint32_t num=0;
|
|
errno_t error;
|
|
|
|
- ret = snprintf(path, PATHLEN, "/proc/%d/status", pid);
|
|
+ ret = snprintf(path, PATHLEN, "/compat/linux/proc/%d/status", pid);
|
|
if (ret < 0) {
|
|
DEBUG(1, ("snprintf failed"));
|
|
return EINVAL;
|
|
@@ -204,7 +204,7 @@
|
|
hash_key_t key;
|
|
hash_value_t value;
|
|
|
|
- proc_dir = opendir("/proc");
|
|
+ proc_dir = opendir("/compat/linux/proc");
|
|
if (proc_dir == NULL) {
|
|
ret = errno;
|
|
DEBUG(1, ("Cannot open proc dir.\n"));
|
|
@@ -278,9 +278,8 @@
|
|
|
|
errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table)
|
|
{
|
|
-#ifdef __linux__
|
|
int ret;
|
|
-
|
|
+#if 1
|
|
ret = hash_create_ex(INITIAL_TABLE_SIZE, table, 0, 0, 0, 0,
|
|
hash_talloc, hash_talloc_free, mem_ctx,
|
|
NULL, NULL);
|