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 
> variable like above, your $cn varible can be changed to this:
> 
>     $cn="$lastname, $firstname";
> 
> The CN of an AD account doesn't need the comma escaped.  But in the name of a 
> container you are creating, commas must be escaped.  Try it and let us know.
> 
> AG
> 
> 

Tried it but I still error out..

failed to add entry:firstname, lastname 00002081: NameErr:
DSID-03050ADF, problem 2003
(BAD_ATT_SYNTAX), data 0, best match of:
        'CN=lastname\,firstname,OU=abc,DC=xyz,DC=com'

Reply via email to