proxy_netgroup.c revision a3c8390d19593b1e5277d95bfb4ab206d4785150
/*
SSSD
Proxy netgroup handler
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define BUFLEN 1024
#define get_triple_el(s) ((s) ? (s) : "")
struct sysdb_attrs *attrs)
{
int ret;
char *dummy;
return ret;
}
return ENOMEM;
}
return ret;
}
} else {
return EINVAL;
}
return EOK;
}
const char *name,
struct sysdb_attrs *attrs,
bool lowercase,
{
if (lowercase) {
if (ret) {
return ret;
}
}
cache_timeout, 0);
return ret;
}
return EOK;
}
{
switch (status) {
case NSS_STATUS_SUCCESS:
break;
case NSS_STATUS_NOTFOUND:
}
break;
case NSS_STATUS_UNAVAIL:
"The proxy target did not respond, going offline\n");
break;
default:
break;
}
return ret;
}
struct sss_domain_info *dom,
const char *name)
{
struct __netgrent result;
enum nss_status status;
int ret;
struct sysdb_attrs *attrs;
if (status != NSS_STATUS_SUCCESS) {
"setnetgrent failed for netgroup [%s].\n", name);
goto done;
}
goto done;
}
goto done;
}
do {
if (status != NSS_STATUS_SUCCESS &&
status != NSS_STATUS_RETURN &&
status != NSS_STATUS_NOTFOUND) {
"getnetgrent_r failed for netgroup [%s]: [%d][%s].\n",
goto done;
}
if (status == NSS_STATUS_SUCCESS) {
goto done;
}
}
if (status != NSS_STATUS_SUCCESS) {
goto done;
}
goto done;
}
done:
return ret;
}