- int rc;
-
- AttributeDescription *ad_objectClass = slap_schema.si_ad_objectClass;
- AttributeDescription *ad_cn = NULL;
- AttributeDescription *ad_sn = NULL;
- AttributeDescription *ad_uid = NULL;
- AttributeDescription *ad_description = NULL;
-
- rc = slap_str2ad( "cn", &ad_cn, text );
- if(rc != LDAP_SUCCESS) return NULL;
- rc = slap_str2ad( "sn", &ad_sn, text );
- if(rc != LDAP_SUCCESS) return NULL;
- rc = slap_str2ad( "uid", &ad_uid, text );
- if(rc != LDAP_SUCCESS) return NULL;
- rc = slap_str2ad( "description", &ad_description, text );
- if(rc != LDAP_SUCCESS) return NULL;