Re: LDIFDE Error when trying to change passwords.



Add the -h switch to that.

C:\CSV:ldifde -i -f -h chPwd.ldif -j c:\csv

The SASL bind (with -b and specific credentials) is only needed if you don't
want to use the credentials of the logged on user. Since you probably
logged on as DA, that will be fine. LDIF defaults to do a SASL bind with
the current user's credentials if none are specified.

The -h adds the encryption. That should allow password mod operations on
2K3 DCs.

Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"JBaxter" <JBaxter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EF4EF876-D0EA-4219-9101-F0B9ADEFBDC1@xxxxxxxxxxxxxxxx
Which command would you like to see, I do not have an example of the SSAL
command or the bind command as I am not sure how to use them. The command
that I am using for the ldifde is standard and works as long as I do not
try
to change the password.

C:\CSV:ldifde -i -f chPwd.ldif -j c:\csv

Importing users works fine, otherwise I get the error "a device attached
to the system is not functioning"

"Joe Kaplan" wrote:

Can you show the command line you are trying to use? If you are running
this from the DC (presumably logged in as the DA), you don't actually
need
to provide credentials. By default, LDIFDE will bind with the current
credentials using SSPI. The -h argument is the key one, as that enables
encryption.

As long as the clients and servers are 2003, the domain/forest mode
should
not matter here. The higher encryption strength of SSPI in Win2K3 (and
XP)
is a function of the improvements made to SSPI at the OS layer and not a
DC-specific thing. SSPI is a general mechanism for remotely
authenticating
clients using different protocols and establishing a secured network
connection between them which is used by tons of other services in
Windows,
not just AD/LDAP.

One thing I'm not certain about is whether the encryption actually kicks
in
when the traffic doesn't leave the machine. I think it does in this
case,
but you want to be sure. You might consider running LDIF from a member
server instead to be sure (logged in as DA or preferably called by using
Runas; logging in as DA is generally not a good idea).

HTH,

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"JBaxter" <JBaxter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:48074FCA-F772-43E4-A87C-3FA1859742FD@xxxxxxxxxxxxxxxx
I have looked over the SSAL bind options but I cannot seem to figure it
out,
any chance you can give me an example of what the command is, I am
doing
the
import directly from the server via a command prompt, the only reason I
am
trying the LDIFDE is that I cannot import the passwords with my CSVDE
file.
the Server all of my servers in this domain are 2k3. Another question
is
do
they have to be running in 2k3 mode or is 2000 native ok for mixed
environs,
or does it matter at all.

"Joe Kaplan" wrote:

Ok, there are a few things. I'm not sure exactly why you are getting
the
error you are getting, but your value is definitely wrong.

The value you have specified is this:
"cGFzc3dvcmQ="
That is a base64 encoded value of the ASCII (or possibly UTF8 or 1252)
encoding of the string "password". You have then enclosed that in
quotes.
That is not correct. You need to take the password string, enclose it
in
quotes, convert the entire value to binary using UNICODE encoding, and
base64 that value. Using the same password value:

password

Enclose in quotes

"password"

Convert to binary using Unicode encoding (shown as hex pairs; notice
the
double bytes and the quote characters 22-00?)

22-00-70-00-61-00-73-00-73-00-77-00-6F-00-72-00-64-00-22-00

Convert binary to Base64:

IgBwAGEAcwBzAHcAbwByAGQAIgA=

To get the encrypted channel, you can either use SSL like the article
suggests, or if you have 2K3 DCs and your client is also XP or higher,
you
can use SSPI bind and the -h option with LDIF to encrypt the
connection
after bind. If you are supplying credentials on the commandline, you
need
to use the -b option.

If you are having trouble with the unicode or base64 conversion, you
may
need to get a better utility. I have a little thing I wrote in .NET
that
helps with this that I could share offline if you need it.

Note also that your test password won't work if password complexity is
enabled, so make sure you improve that if needed (Password1 is the
crappy
choice for testing that gets used a lot :)).

Given the error you are getting, you might be having different
problems
with
actually connecting to the directory. Typically, you'll get an
"unwilling
to process" error message from LDAP if it doesn't like the value you
use
or
you don't have a secure connection.

HTH,

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"JBaxter" <JBaxter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:879F0511-1793-4C4C-AC7A-B98B41919C33@xxxxxxxxxxxxxxxx
Thank you for the reply Joe, the question is why am I recieving the
errir
that I am

A device attached to the system is not functioning,

is it because I am not ussing SSL, here is the code that I am using

dn: CN=testuser,OU=example,DC=example,DC=local
changetype: modify
replace: unicodePwd
unicodePwd:"cGFzc3dvcmQ="
-









.



Relevant Pages

  • Re: ADAM Authentication
    ... authtype should be Negotiate and username should either be the login ... three are "bindable" username formats supported by ADAM for simple bind. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD and Expired Password Checking and how to test?
    ... Like Joe said, the exact ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... I reset the password for a user, and the password expires on ... I change the system date to 10/10/06, and try a bind, which fails. ...
    (microsoft.public.windows.server.active_directory)
  • Re: How do I bind to LDAP with a username/password
    ... authenticating against an LDAP server with a username and password. ... Failure to bind indicates a failure to authenticate. ... You can attempt to bind with some given credentials, ...
    (comp.lang.java.programmer)
  • Re: How do I bind to LDAP with a username/password
    ... authenticating against an LDAP server with a username and password. ... Failure to bind indicates a failure to authenticate. ... You can attempt to bind with some given credentials, ...
    (comp.lang.java.programmer)
  • Re: ADAM and accessing it like Active Directory
    ... - They forget to do an LDAP simple bind from their application ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... application I installed ADAM. ...
    (microsoft.public.windows.server.active_directory)