mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Add a little debugging
This commit is contained in:
parent
cdb5244edf
commit
72db2b73dc
2 changed files with 9 additions and 8 deletions
|
|
@ -130,7 +130,7 @@ attr_normalize( char *s )
|
|||
*/
|
||||
|
||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||
/* not yet implemented */
|
||||
/* not used */
|
||||
#else
|
||||
int
|
||||
attr_merge_fast(
|
||||
|
|
@ -145,23 +145,17 @@ attr_merge_fast(
|
|||
{
|
||||
if ( *a == NULL ) {
|
||||
for ( *a = &e->e_attrs; **a != NULL; *a = &(**a)->a_next ) {
|
||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||
/* not yet implemented */
|
||||
#else
|
||||
if ( strcasecmp( (**a)->a_type, type ) == 0 ) {
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
if ( **a == NULL ) {
|
||||
**a = (Attribute *) ch_malloc( sizeof(Attribute) );
|
||||
(**a)->a_vals = NULL;
|
||||
#ifndef SLAPD_SCHEMA_NOT_COMPAT
|
||||
(**a)->a_type = attr_normalize( ch_strdup( type ) );
|
||||
(**a)->a_syntax = attr_syntax( type );
|
||||
#endif
|
||||
(**a)->a_next = NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,8 +28,11 @@ int is_entry_objectclass(
|
|||
static const char *objectClass = "objectclass";
|
||||
#endif
|
||||
|
||||
if( e == NULL || oc == NULL || *oc == '\0' )
|
||||
assert(!( e == NULL || oc == NULL || *oc == '\0' ));
|
||||
|
||||
if( e == NULL || oc == NULL || *oc == '\0' ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* find objectClass attribute
|
||||
|
|
@ -38,6 +41,10 @@ int is_entry_objectclass(
|
|||
|
||||
if( attr == NULL ) {
|
||||
/* no objectClass attribute */
|
||||
Debug( LDAP_DEBUG_ANY, "is_entry_objectclass(\"%s\", \"%s\") "
|
||||
"no objectClass attribute\n",
|
||||
e->e_dn == NULL ? "" : e->e_dn, oc, 0 );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue