slapi_dn_compare_v3()

slapi_dn_compare_v3() compares two distinguished names (DN).

Syntax
#include "slapi-plugin.h"
char *slapi_dn_compare_v3(char *dn1, char* dn2);
Parameters
dn1
A DN that you want to compare.
dn2
A DN that you want to compare.
Returns
  • Less than 0 if the value of dn1 is lexicographically less than dn2.
  • 0 if the value of dn1 is lexicographically equal to dn2.
  • Greater than 0 if the value of dn1 is lexicographically greater than dn2.