2
solnss.c - Solaris specific NSS interface functions
4
Copyright (C) 2010 Arthur de Jong
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library 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 GNU
14
Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26
#include "prototypes.h"
28
#include "compat/attrs.h"
30
nss_backend_t *nss_ldap_constructor(nss_backend_op_t *ops,size_t sizeofops)
32
struct nss_ldap_backend *ldapbe;
33
ldapbe=(struct nss_ldap_backend *)malloc(sizeof(struct nss_ldap_backend));
37
ldapbe->n_ops=sizeofops/sizeof(nss_backend_op_t);
39
return (nss_backend_t *)ldapbe;
42
nss_status_t nss_ldap_destructor(nss_backend_t *be,void UNUSED(*args))
44
struct nss_ldap_backend *ldapbe=(struct nss_ldap_backend *)be;
46
(void)tio_close(ldapbe->fp);
48
return NSS_STATUS_SUCCESS;