> In your code you change the value of cn if the original value of > "$lastname\, $firstname" is not unique, but you don't change the $dn > variable (which use cn as the RDN) - with AD, both of these must be the > same.
Paul. I'm aware of that and I'll have to correct it later. Right now, I just testing to add records that are unique and I'm having problem due to the comma. Will
