Hi all, I''ve got the beginning of win32-etc 0.2.0 checked into cvs. This includes a new sub-module called Admin that includes the add_user, delete_user, and change_password methods. I eventually will add a config_user method as well, plus whatever else I feel like tossing in. :) One issue I''m having is with the change_password - no matter what I try, I always get "invalid password". I tried with straight C as well, to no avail. Anyway, I was hoping someone could take a look at the code and see if there''s something obvious I''m missing. Also, I''m not real clear on when I should be casting LPCWSTR types to WCHAR using MultiByteToWideChar(). One thing I did notice is that if you add a user as a WCHAR, you have to *find it* that way as well, so I''m a little concerned. Help, ideas, suggestions welcome. Dan _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx
Hi,> Hi all, > > I''ve got the beginning of win32-etc 0.2.0 checked into cvs. This includesa> new sub-module called Admin that includes the add_user, delete_user, and > change_password methods. I eventually will add a config_user method as > well, plus whatever else I feel like tossing in. :) > > One issue I''m having is with the change_password - no matter what I try, I > always get "invalid password". I tried with straight C as well, to no > avail. Anyway, I was hoping someone could take a look at the code and see > if there''s something obvious I''m missing. > > Also, I''m not real clear on when I should be casting LPCWSTR types toWCHAR> using MultiByteToWideChar(). One thing I did notice is that if you add a > user as a WCHAR, you have to *find it* that way as well, so I''m a little > concerned. > > Help, ideas, suggestions welcome. > > Dan >I tried your code in cvs. After I added AllocWideLString to etc.h, it worked fine and I changed my password successfully. BTW, I will commit first version of the win32-mmap tomorrow. Regards, Park Heesob
> > Dan > > > I tried your code in cvs. > After I added AllocWideLString to etc.h, it worked fine and I > changed my password successfully. > > BTW, I will commit first version of the win32-mmap tomorrow. > > Regards, > > Park HeesobOops - forgot to commit that. I think I forgot to commit the test_admin.rb script as well. I''ll do that tonight. I didn''t try changing my own password, but rather I created a "foo" user, then tried to change that password, but it didn''t work. I was afraid to try my own. ;) Dan