4.1.16.2.1 ValidateSiteRDN
-
procedure ValidateSiteRDN(s: unicodestring): boolean
Informative summary of behavior: The ValidateSiteRDN procedure returns 0 if s is a valid RDN for a site object, and returns an appropriate error otherwise. A valid RDN has the following characteristics:
Is not null.
Does not have 0 length.
Does not have a length greater than 64.
Contains no occurrences of the equal sign (=) or comma (,).
if s = null or s.length = 0 then return ERROR_DS_DRA_INVALID_PARAMETER endif if s.Length > 64 then return ERROR_DS_NAME_TOO_LONG endif if s contains (=) or s contains (,) then return ERROR_DS_DRA_INVALID_PARAMETER endif return 0