You need to escape the comma when creating the container.  Like so:

CN=Doe\, Jane,OU=stuff,DC=blah,DC=com

AG


> -----Original Message-----
> From: wy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 14, 2005 3:13 PM
> To: [email protected]
> Subject: Problem using comma in Common Name
> 
> 
> I ran into a problem when I try to add users to AD when using lastname
> and firstname separate by a comma.
> 
> example of a DN for the add command is such
> 
> cn=Doe, Jane,ou=x,dc=xx,dc=com
> 
> It results in problem 2006 (BAD_NAME) error.
> 
> I use a combination of variables to create the DN.
> 
> $dn="$cn,$xyz_base,$base2";
> 
> How can I get around the error?
> 
> Thanks!
> 
> Will
> 

Reply via email to