Atrax
Wed Dec 03 20:30:53 CST 2003
This is a multi-part message in MIME format
------=_NextPart_000_24703337
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Security restriction prevent client-side scripts from doing quite a lot
of things unless the user specifically allows it. I'd say this is the
problem.
________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/
newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
------=_NextPart_000_24703337
Content-Type: text/html; name="_alt.0"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="_alt.0"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4=2E0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html;=
charset=3Diso-8859-1">
<META content=3D"MSHTML 6=2E00=2E2800=2E1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have an example program to modify user=
objects with values
from a spreadsheet linked on this page:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2><A
href=3D"
http://www=2Erlmueller=2Enet/UpdateUserProfile=2Ehtm">http://www=2E=
rlmueller=2Enet/UpdateUserProfile=2Ehtm</A></FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>The program reads the user Distinguished Name=
from the first
column of the spreadsheet=2E This example modifies the=
"profilePath" attribute,
but almost any attribute, including sAMAccountName, can be=
updated this
way=2E The program also shows how to "null" an attribute (remove=
any value)=2E If
you plan to modify the "cn" attribute, of course, you will have=
to use the
MoveHere method of the parent container object=2E</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Also, you are correct about the=
SID's=2E</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Does your spreadsheet identify users by DN or=
sAMAccountName?
Are the first name (givenName) and last name (sn) attributes=
populated with
values in your AD, so you can use these values to construct the=
new names, or
will everything be supplied in the spreadsheet? Is your intention=
that the value
of sAMAccountName be the same as the value of cn?</FONT></DIV>
<DIV><FONT size=3D2><BR>-- <BR>Richard<BR>Microsoft MVP Scripting=
and
ADSI<BR>HilltopLab web site - <A
href=3D"
http://www=2Erlmueller=2Enet">http://www=2Erlmueller=2Enet</A><BR>-=
-</FONT></DIV>
<BLOCKQUOTE dir=3Dltr
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;=
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Roger" <<A
=
href=3D"mailto:hainesr3@nationwide=2Ecom">hainesr3@nationwide=2Ecom</A=
>> wrote in
message <A
=
href=3D"news:umTKOveuDHA=2E2352@TK2MSFTNGP09=2Ephx=2Egbl">news:umTKOveuD=
HA=2E2352@TK2MSFTNGP09=2Ephx=2Egbl</A>=2E=2E=2E</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your reply=
Richard=2E</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Just to give you a little=
background=2E It's
been mandated by our parent company that we change our domain=
user IDs to
match our Lotus Notes logon name (called the short=
name)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've tested renaming a user=
account in Active
Directory users and computers and it works great=2E Once=
renamed it
maintains the same SID so any permissions to resources will not=
need to be
changed=2E</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I thought I could automate this=
process via a
script=2E My thinking is that I could reference a=
spreadsheet containing
all the attribute values that need to be changed by the script=
including the
"cn" and the <FONT=
size=3D3>"sAMAccountName"=2E</FONT></FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>Can I do this using your example? =
If so, what is
the next step in your example that would actually change the
value?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT=
size=3D3></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D3><FONT size=3D2>How far=
out on a limb
am I here?</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><