}
if ( count == 1 ) {
- char *dn, **s, **oc;
- int rc;
+ char *dn, **oc;
e = ldap_first_entry( ld, res );
oc = ldap_get_values( ld, e, "objectClass" );
{
char *ndn;
char **mail;
- int i, rc;
+ int rc;
LDAPMessage *res, *e;
struct timeval timeout;
)
{
LDAPMessage *ee, *res;
- char **vals, **dnlist, **mail, **grname, **graddr;
+ char **vals, **dnlist, **mail, **grname;
char *dn;
int nto = 0, i, rc;
struct timeval timeout;
char *prog, *usage = "%s [-l] [-U] [-h ldaphost] [-p ldapport] [-b searchbase] [-a] [-z sizelimit] [-u dapuser] [-f filterfile] [-t templatefile] [-c rdncount]\n";
struct msginfo msg;
int c, errflg;
- char *replytext;
*reply = '\0';
{
LDAP *ldp;
LDAPMessage *ldmsgp, *entry;
- char *s, *dn;
+ char *dn;
int matches, rc, ld_errno, ufn;
LDAPFiltDesc *lfdp;
LDAPFiltInfo *lfi;
LDAPMessage *mp; /* returned by find() */
register char *cp; /* misc char pointer */
register char *ap; /* misc char pointer */
- static char buf[MED_BUF_SIZE]; /* for prompting */
static char cmd[MED_BUF_SIZE]; /* holds the command */
static char input[MED_BUF_SIZE]; /* buffer for input */
unsigned int n;
int c;
unsigned long len;
- Couple *cc;
Debug( LDAP_DEBUG_TRACE, "ldap_t61_to_8859 input length: %ld\n",
*buflenp, 0, 0 );
char *dn
)
{
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
Entry e, *ep;
ID id;
char *dn
)
{
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
struct dbcache *db;
Datum key;
int rc;
{
struct dbcache *db;
Datum key;
- int len, rc;
- ID_BLOCK *idl;
char buf[20];
ldbm_datum_init( key );
{
struct dbcache *db;
Datum key;
- int len, rc;
- ID_BLOCK *idl;
char buf[20];
Debug( LDAP_DEBUG_TRACE, "=> id2children_remove( %ld, %ld )\n", p ? p->e_id
)
{
Attribute *ap;
- char *dnval;
struct berval bv;
struct berval *bvals[2];
{
struct ldbminfo *li;
char *argv[ 4 ];
- int i;
/* allocate backend-database-specific stuff */
li = (struct ldbminfo *) ch_calloc( 1, sizeof(struct ldbminfo) );
next_id_write( Backend *be, ID id )
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
- char buf[20];
char* file = li->li_nextid_file;
FILE* fp;
int rc;
Attribute *ref;
char *matched = NULL;
int rmaxsize, nrefs;
- char *rbuf, *rcur, *r;
+ char *rbuf, *rcur;
int nentries = 0;
char *realBase;
strncmp( e->e_ndn, "REF=", 4 ) == 0 &&
(ref = attr_find( e->e_attrs, "ref" )) != NULL )
{
- int i, len;
+ int i;
if ( ref->a_vals == NULL ) {
Debug( LDAP_DEBUG_ANY, "null ref in (%s)\n",
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
- int rc;
- ID id;
ID_BLOCK *idl;
Entry *e;
{
char code, adjacent, ch;
char *p;
- char **c;
- int i, cmax;
+ int i;
char phoneme[MAXPHONEMELEN + 1];
p = s;
)
{
BerElement *ber;
- int rc, sd;
+ int rc;
unsigned long tag, bytes;
if ( err == LDAP_PARTIAL_RESULTS && (text == NULL || *text == '\0') )
{
BerElement *ber;
Attribute *a;
- int i, rc, bytes, sd;
+ int i, rc, bytes;
struct acl *acl;
char *edn;
oc_schema_check( Entry *e )
{
Attribute *a, *aoc;
- struct objclass *oc;
int i;
int ret = 0;