In perl, you need to escape the escape:
$cn="$lastname\\, $firstname";
On Jul 14, 2005, at 2:04 PM, wy wrote:
Aaron,
The setup for CN and DN are such.
$cn="$lastname \, $firstname";
$dn="cn=$cn,$it_base,$base2";
This is the error I get when I tried it..
failed to add entry: Jane, Doe 0000208F: NameErr: DSID-031001B3,
problem 2006
(BAD_NAME), data 8350, best match of:
'Jane,ou=abc,dc=xyz,dc=com'
Will
On 7/14/05, Giuoco, Aaron <[EMAIL PROTECTED]> wrote:
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