🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8674

Howto change a Windows 2000 User's Password via JNDI / LDAP

#8674
From: Lucas Farnach
Date: Tue, 06 Mar 2001 14:18
17 lines
1482 bytes
I'm using Active Directory and want to set the User's password via JNDI. For
that I have to set the "unicodePwd"-attribute.

The problem: The attribute has to be formatted

The MSDN writes:
"The syntax of the unicodePwd attribute is octet-string;
however, the directory service expects that the octet-string will contain a
UNICODE string. This means that any values for this attribute passed in LDAP
must be UNICODE strings that are BER-encoded (Basic Encoding Rules) as an
octet-string."

I tried a lot of BEREncoding Classes but nothing worked. Does anybody know
how to set the "unicodePwd"-attribute?

Thanks in advance
Lucas Farnach
Technical Details
Message-ID: <3aa4f1d9_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!62.208.91.226

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e042ff489020f542,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-06 06:33:23 PST
From: "Lucas Farnach" <l.farnach@itcampus.de>
Newsgroups: borland.public.jbuilder.java.language
Subject: Howto change a Windows 2000 User's Password via JNDI / LDAP
Date: Tue, 6 Mar 2001 15:18:06 +0100
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.208.91.226
Message-ID: <3aa4f1d9_1@dnews>
X-Trace: 6 Mar 2001 06:19:05 -0800, 62.208.91.226
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!62.208.91.226