Re: Setting Passwords via DSML with non-admin type Domain User Cre

From: Marvin Bobo (marvinb_at_community.nospam)
Date: 05/25/05


Date: Wed, 25 May 2005 12:31:01 -0700

My apologies, code would help but I am not sure how to do the remove op in
DSML. What is happening is we have an external system that will "create" the
password and this is transferred to Active Directory in support of a
proprietary application. Therefore the unicodePwd field is being modified.
What I am not sure of is how to "remove" the unicodePwd attribute and then
set it. Here is the batch request (in DSML) which works under administrator
level but not doing the suggestion in your original post.

<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/">
        <se:Body xmlns="urn:oasis:names:tc:DSML:2:0:core">
                <batchRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <modifyRequest dn="cn=test,ou=testou,DC=TFODev,DC=local">
                                <modification name="unicodePwd" operation="replace">
                                        <value
xsi:type="xsd:base64Binary">IgBuAGUAdwBQAGEAcwBzAHcAbwByAGQAIgA=</value>
                                </modification>
                        </modifyRequest>
                </batchRequest>
        </se:Body>
</se:Envelope>

"Joe Kaplan (MVP - ADSI)" wrote:

> It isn't easy finding any help for DSML as it is not very well used. I
> actually know almost nothing about it.
>
> Based on the previous post that you referred to (which I guess I wrote :)),
> I want to ask if you are doing the remove and add mod op instead of the
> replace. If you show your code, that might help (although I know neither
> DSML or PERL very well, I should be able to figure it out, especially if you
> post both versions).
>
> If you try to do a set password (just an LDAP replace), you'll probably have
> a permissions problem because normal users don't have rights to reset
> passwords, only to change their own.
>
> HTH,
>
> Joe K.
> "Marvin Bobo" <marvinb@community.nospam> wrote in message
> news:FC83C34F-44F5-4108-A60A-DF55EFB0F7BF@microsoft.com...
> > When I execute the DSML request to change the password as Admin, works ok.
> > When I execute as the domain user, fails with "HTTP Error 401.3 -
> > Unauthorized: Access is denied due to an ACL set on the requested
> > resource".
> > I have set the specific user to full control on the ou and container for
> > the
> > user. The domain user logging on is changing its own account.
> >
> > Here is a post that is related to what I need to do but this is with LDAPs
> > using Perl scripts:
> >
> > http://msdn.microsoft.com/newsgroups/managed/Default.aspx?dg=microsoft.public.active.directory.interfaces&mid=8461ad71-02a4-4759-8812-b0494e900898&sloc=en-us
>
>
>



Relevant Pages

  • Re: Setting Passwords via DSML with non-admin type Domain User Cre
    ... I think we are confusing terms now. ... There are three different types of LDAP attribute modifications: ... how to find out since I have no DSML directory to play with. ... normal users have rights to change their own password but ...
    (microsoft.public.platformsdk.security)
  • Re: Setting Passwords via DSML with non-admin type Domain User Credent
    ... It isn't easy finding any help for DSML as it is not very well used. ... If you try to do a set password (just an LDAP replace), ... > When I execute the DSML request to change the password as Admin, ... > using Perl scripts: ...
    (microsoft.public.platformsdk.security)