King Willy
4th May 2007, 18:49
Hello:

I have got a session with 2 variables of type string in the screen: User and password.

3212


¿Is there any way to check them with a valid network user/password?

NPRao
4th May 2007, 22:10
I am not sure on your BaaN Version, try -

$BSE/bin/badmin6.2 -U

Insufficient or wrong option(s) provided

Usage: badmin6.2 [-pUuVv] [-qo outfile] [-qe errfile] -getpwd <user> <pwd> | -chkpwd <user> | -chkuser <user> | -chkgroup <group> | -ostype <ostype>

-p : Tag for Aged Password Notification. Has only effect with some other flags, e.g. -chkpwd.
-U or -u : Print usage
-V or -v : Print release number
-qo outfile : Redirect standard output to file outfile
-qe errfile : Redirect error output to file errfile
-chkuser <user> : Returns 0 if user exists, else 1.
-chkgroup <group> : Returns 0 if group exists, else 1.
-chkpwd <user> : Returns 0 if successful, else 1.
-getpwd <user> : Returns 0 if successful, else 1.
-ostype <osname> : Returns 0 if ostype is osname, else 1.
-chkpasswd <user> <password> : Returns if 0 if passwd is ok, else 1
-chgpwd <user> <old password> <new password> : changes <user> password
osname can be NT, OS400 or UNIX

King Willy
7th May 2007, 16:30
Thank you, NPRao.

I'm working in BaanIVc4, so I have badmin6.1 instead of badmin6.2 and it hasn't got -chkpasswd option.

¿Is there another way of checking these fields?

rpoenaru
7th May 2007, 16:50
You have to be on Porting Set 6.1c.07.14

King Willy
9th May 2007, 17:45
I've got 6.1c.07.10.

Maybe It's time to change Porting set :)

Thank you very much

amaslak
20th February 2008, 13:57
Hello Willy,

Did you manage to solve the problem?

I'm asking because I work with Baan IVc on portingset 6.1c.07.16 and options –chkpasswd and –chgpwd don't work :-(

For example, when I run the following command on bsp account, the is no success.

badmin6.1 -chkpasswd bsp <password>
badmin6.1: Login failed for user bsp
1
-1

Thanks in advance for help.

Regards,
Aleksandra

george7a
20th February 2008, 14:02
Do you need to check the Baan password from within a Baan session? If yes, check the is.password.ok (http://www.baanboard.com/baanboard/showpost.php?p=124573&postcount=13) (& crypt.password$) function that is mentioned in the undocumented functions thread (http://www.baanboard.com/baanboard/showthread.php?t=36550).

I hope it helps,

- George

amaslak
20th February 2008, 15:52
George,

Thanks for replay.

As for the passwords, I want to check passwords but also to change them. Is also a function for password changing in Baan IVc? I suppose not, but i'm not an expert - yet :-)

The problem is that password aging solution doesn't work properly on AIX5.3 - if new password doesn't meet AIX restictions (required alpha-chars, length, quantity of last passwords that can't be used), the session ttstppwchange is hanging. So workaround has to be applied.

Regards,
Aleksandra