getauuser.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <secdb.h>
#include "ldap_common.h"
/* audit_user attributes */
#define _AU_NAME "uid"
#define _AU_ALWAYS "SolarisAuditAlways"
#define _AU_NEVER "SolarisAuditNever"
#define _AU_GETAUUSERNAME "(&(objectClass=SolarisAuditUser)(uid=%s))"
#define _AU_GETAUUSERNAME_SSD "(&(%%s)(uid=%s))"
static const char *auuser_attrs[] = {
(char *)NULL
};
static int
{
int i, nss_result;
int buflen = (int)0;
unsigned long len = 0L;
char *nullstring = (char *)NULL;
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_au2ent;
}
nss_result = (int)NSS_STR_PARSE_SUCCESS;
nss_result = (int)NSS_STR_PARSE_PARSE;
goto result_au2ent;
}
nss_result = (int)NSS_STR_PARSE_PARSE;
goto result_au2ent;
}
nss_result = (int)NSS_STR_PARSE_PARSE;
goto result_au2ent;
}
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_au2ent;
}
continue;
}
} else {
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_au2ent;
}
}
continue;
}
} else {
nss_result = (int)NSS_STR_PARSE_ERANGE;
goto result_au2ent;
}
}
continue;
}
}
#ifdef DEBUG
}
}
#endif /* DEBUG */
return ((int)nss_result);
}
static nss_status_t
{
char searchfilter[SEARCHFILTERLEN];
char userdata[SEARCHFILTERLEN];
char name[SEARCHFILTERLEN];
int ret;
#ifdef DEBUG
#endif /* DEBUG */
return ((nss_status_t)NSS_NOTFOUND);
return ((nss_status_t)NSS_NOTFOUND);
return ((nss_status_t)NSS_NOTFOUND);
}
static ldap_backend_op_t auuser_ops[] = {
};
/*ARGSUSED0*/
_nss_ldap_audit_user_constr(const char *dummy1,
const char *dummy2,
const char *dummy3,
const char *dummy4,
const char *dummy5)
{
#ifdef DEBUG
"\n[getauuser.c: _nss_ldap_audit_user_constr]\n");
#endif
}