On 21/5/04 6:12 am, Hollinger, Robert-Alexandre <[EMAIL PROTECTED]>
wrote:
[...]
> Here is how I try to set the country
>
>
>
> if ($pays ne ""){$newentry->add('c'
> => "France");}
[...]
> I also tried the following :
>
>
>
> if ($pays ne ""){$newentry->add('co'
> => "France");}
>
>
>
> And when I do that, I have no error when I create the user, but when I
> check in AD in its "Address" Property Sheet, there is no value in the
> Country/Region label.
The standard "c" attribute can only contain 2-character long values from ISO
3166. You can find lists of ISO 3166 codes on the net, but essentially you
want "FR" for France. See RFC 2256 for the definition of this attribute,
although you should also check that Microsoft implements it correctly.
The "co" attribute is the short name usually associated with the
friendlyCountryName attribute defined in RFC 1274. It can hold longer
freeform strings, like "France", or "Country making nice wines and cheeses"
;-)
I'd guess that AD needs the "c" attribute filled in correctly, rather than
the "co" attribute.
Cheers,
Chris