I finally resolved it using single quotes instead.
Example of the DN definition.
$dn='cn=' . $lastname . '\, ' . $firstname . ',' . $it_base . ',' . $base;
Seems like double quotes is the cause of the problem. Note to self:
Avoid the use of double quotes as much as possible.
Thanks everyone fo
In the immortal words of Clive George:
> >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
>
> I know this isn't necessarily helpful, but have you co
> 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
jus
14 July 2005 22:57
To: Giuoco, Aaron
Cc: Glenn Lamb; [email protected]
Subject: Re: Problem using comma in Common Name
On 7/14/05, Giuoco, Aaron <[EMAIL PROTECTED]> wrote:
> Please provide us all of your code related to creating the user,
specifically the stuff related to creation o
On 7/14/05, Giuoco, Aaron <[EMAIL PROTECTED]> wrote:
> Instead of this:
>
> $dn="cn=$cn,$retail_base,$base1";
>
> try this:
>
> $dn="cn=" . $lastname . "\\," . $firstname . ",$retail_base,$base1";
>
> Do similar for your Corporate and IT categories. Also, if you set your $dn
> variabl
OTECTED]
> Sent: Thursday, July 14, 2005 4:57 PM
> To: Giuoco, Aaron
> Cc: Glenn Lamb; [email protected]
> Subject: Re: Problem using comma in Common Name
>
>
> On 7/14/05, Giuoco, Aaron <[EMAIL PROTECTED]> wrote:
> > Please provide us all of your code related to
On 7/14/05, Giuoco, Aaron <[EMAIL PROTECTED]> wrote:
> Please provide us all of your code related to creating the user, specifically
> the stuff related to creation of the container. I have created accounts with
> commas in them before, so I know it's possible. It has to be some kind of
> smal
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
I know this isn't necessarily helpful, but have you considered not using
name as the DN? Names change (Jane marr
-
> From: wy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 14, 2005 4:39 PM
> To: Glenn Lamb
> Cc: Giuoco, Aaron; [email protected]
> Subject: Re: Problem using comma in Common Name
>
>
> Tried it both ways with a single or double backslash and the following
> is t
Tried it both ways with a single or double backslash and the following
is the error I get for double backslash.
failed to add entry: firstname, lastname 2081: NameErr:
DSID-03050ADF, problem 2003
(BAD_ATT_SYNTAX), data 0, best match of:
'CN=lastname\, firstname,OU=abc,DC=xyz,DC=com'
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 f
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
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
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_bas
14 matches
Mail list logo