Re: Problem using comma in Common Name

2005-07-17 Thread wy
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

Re: Problem using comma in Common Name

2005-07-15 Thread Christopher A Bongaarts
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

Re: Problem using comma in Common Name

2005-07-15 Thread wy
> 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

RE: Problem using comma in Common Name

2005-07-15 Thread Paul Connolly
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

Re: Problem using comma in Common Name

2005-07-14 Thread wy
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

RE: Problem using comma in Common Name

2005-07-14 Thread Giuoco, Aaron
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

Re: Problem using comma in Common Name

2005-07-14 Thread wy
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

Re: Problem using comma in Common Name

2005-07-14 Thread 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 considered not using name as the DN? Names change (Jane marr

RE: Problem using comma in Common Name

2005-07-14 Thread Giuoco, Aaron
- > 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

Re: Problem using comma in Common Name

2005-07-14 Thread wy
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'

Re: Problem using comma in Common Name

2005-07-14 Thread Glenn Lamb
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

Re: Problem using comma in Common Name

2005-07-14 Thread wy
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

RE: Problem using comma in Common Name

2005-07-14 Thread Giuoco, Aaron
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

Problem using comma in Common Name

2005-07-14 Thread wy
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