Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2005, 02:45
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
Here's the code for accessing the passage binary

Nothing special! - Passage returns zero if successful.

Code:
        
        long    ret
        long    info(PSMAXSIZE)
        string  progname(512)
        long    procid

function main()
{
        ret = shell("${BSE}/scripts/passage",SHELL_MWINDOW)
        if ret > 0 then
                procid = -1
                procid = pstat( procid, progname, info)
                        while procid > 0
                        procid = pstat(procid, progname, info)
                        kill(procid)
                endwhile
        endif
}

Last edited by ~Vamsi : 7th January 2005 at 18:58. Reason: modified code tag to code=baan
Reply With Quote
  #2  
Old 6th January 2005, 17:00
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,934
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Original Post

I thought I would mention that this goes with this post.

Mark
Reply With Quote
  #3  
Old 6th January 2005, 18:04
baanbab baanbab is offline
Member
 
Join Date: Apr 2002
Location: San Diego, CA
Posts: 42
baanbab is on a distinguished road
Baan: Baan IVc4 - DB: SQL 7.0 - OS: Windows 2003/XP
Help!

Hi Guys,

I did not understand the solution. Can anyone please explain me what should I do with the password aging. I download the passage-HPUX.tar. After that what should I do?

Thanks,
Babu
Reply With Quote
  #4  
Old 6th January 2005, 18:46
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
Hi Babu,

Download the documentation.pdf file from the website to show how to install
the "passage" binary. Then use this code + a Startup Session in Baan to activate it.

Dave
Reply With Quote
  #5  
Old 7th January 2005, 17:08
nneilitz's Avatar
nneilitz nneilitz is offline
Member
 
Join Date: Feb 2002
Location: Midland, TX
Posts: 40
nneilitz is on a distinguished road
Baan: IVc4sp15+ - DB: Oracle 8.1.6.3 - OS: HP-UX 11.11 (11i)
Webtop and starting sessions

Just thought I would note this. I have a similar type program to check for password expiration. Using startup sessions caused an issue with webtop logins. It may have been particular to my configuration but something to be aware of.
Reply With Quote
  #6  
Old 7th January 2005, 17:25
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
Was it the startup session or the password aging stuff that caused problems
with webtop?

I don't have webtop, but I wouldn't think this would work with that -- but I hope that startup sessions don't cause it (webtop) to choak!

Thanks!

Dave
Reply With Quote
  #7  
Old 7th January 2005, 21:48
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,032
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
From my case info-

SITUATION DESCRIPTION:
How is password aging is handled in webtop ?

SOLUTION DESCRIPTION:
Password aging is not currently support in Webtop - any version; however, there are plans to try and include this functionality in a future release of the PortingSet - planned for 2005, though there is not a set date or PS version as of yet.

3-GL programs are not supported in Webtop.
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
  #8  
Old 7th January 2005, 21:58
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
Good luck with that. talk about a security risk!

Dave
Reply With Quote
  #9  
Old 18th January 2005, 10:30
Baxajaun Baxajaun is offline
Junior Member
 
Join Date: Jan 2002
Posts: 7
Baxajaun is on a distinguished road
Passage's code

Hi Dave,

will you public the code source of Passage ?

Best regards,

Baxajaun
Reply With Quote
  #10  
Old 19th January 2005, 17:08
frajer's Avatar
frajer frajer is offline
Member
 
Join Date: Jan 2003
Location: Slovenia
Posts: 62
frajer is on a distinguished road
Baan: c4 - DB: informix - OS: AIX Unix 4.3.3.0
Aix4=ok

Hi Dave,
I've tested 'passage' on our test server (AIX 4.3; BaaN C4). As I see - generally it is OK.
Q: the number in "../security/user" (seconds from 1.1.70): does it mean current day or the day when password was last changed?
THX.
__________________
Franci
Reply With Quote
  #11  
Old 21st January 2005, 09:24
frajer's Avatar
frajer frajer is offline
Member
 
Join Date: Jan 2003
Location: Slovenia
Posts: 62
frajer is on a distinguished road
Baan: c4 - DB: informix - OS: AIX Unix 4.3.3.0
I tested a little more. Silly q. from my last post: the number, of course, shows the day of first login/creating file. But, the very next day, it is said, that my password had been expired. That is not ok, is it?
__________________
Franci
Reply With Quote
  #12  
Old 22nd January 2005, 21:17
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
Hi Guys,

Sorry for the delayed response.

not planning any time soon to release the source for passage, sorry!

Frajer,

That's strange, can you duplicate the problem and set PWDEBUG=1 and send me the logfile?

Additionally, I've found with the help of mpenno that if you setuid root the passage binary it will work correctly with NIS+ and probably PAM, etc..
I'll be updating the site with at sort of info soon..

Thanks!

Dave
Reply With Quote
  #13  
Old 26th January 2005, 11:37
frajer's Avatar
frajer frajer is offline
Member
 
Join Date: Jan 2003
Location: Slovenia
Posts: 62
frajer is on a distinguished road
Baan: c4 - DB: informix - OS: AIX Unix 4.3.3.0
Hi,
There is some more writing about my testing. I followed the instructions and substracted some days:
-1 day >> "Your account has Expired. You must change your password to continue..." (1)
Then I changed pwd but at the end (bottom) it said (again): "You must change your password to log in" and in file ../security/username '1' changed to '0' !!! I login again >> same as (1)
-2 days >> same as (1)
-3 days >> "You have -1 days remaining. Would you like to change your pwd now? (Y\N)"
-5 days >> "You have -3 days remaining......."
-80 days>> "You have -78 days remaining......."

About debugging - I put "PWDEBUG=1" into my user's .kshrc file. Nothing more it is written in $BSE/log/log.passage. Only this one, when user logs in for the first time:
Wed Jan 26 09:42:43 2005: Unable to open userfile - creating: /baan4/bse/security/opr01
__________________
Franci
Reply With Quote
  #14  
Old 26th January 2005, 13:59
dave_23's Avatar
dave_23 dave_23 is offline
Guru
 
Join Date: Oct 2002
Location: Portland, OR
Posts: 1,303
dave_23 will become famous soon enough
Baan: All - DB: Oracle / MS SQL / DB2 - OS: All
A couple of things -

If you're using NIS, LDAP or Shadow (i.e., you have a * or an x in your /etc/passwd file instead of an encrypted password - then passage needs to be setuid root to be able to do that comparison, otherwise it just ends up comparing * to * which always comes out the same...

Are users logging in via BW or ba? if it's BW the .profile isn't sourced. If its ba, are you doing "export PWDEBUG=1" ? or just PWDEBUG=1?

Looks like i've got something mesed up with the days too, hopefully we can get the PWDEBUG to work, that would help me.

Also, what OS are you running?

Thanks!

Dave
Reply With Quote
  #15  
Old 26th January 2005, 15:17
frajer's Avatar
frajer frajer is offline
Member
 
Join Date: Jan 2003
Location: Slovenia
Posts: 62
frajer is on a distinguished road
Baan: c4 - DB: informix - OS: AIX Unix 4.3.3.0
Very good; I followed you correctly now. I set debugging into .profile for BA and into command line in BW conf. Here it is the result for one day old (the same for BA or BW logging):
[] </baan4/bse/security> cat opr01
1106657400 0
[] </baan4/bse/security> cat $BSE/log/log.passage
Wed Jan 26 13:51:40 2005: Unable to open userfile - creating: /baan4/bse/securitiy/opr01
Wed Jan 26 14:01:40 2005: Starting Debug
Wed Jan 26 14:01:40 2005: Identified BSE /baan4/bse/
Wed Jan 26 14:01:40 2005: Identified user opr01
Wed Jan 26 14:01:40 2005: Identified userfile /baan4/bse/security/opr01
Wed Jan 26 14:01:40 2005: User account expired opr01
Wed Jan 26 14:01:52 2005: User did not change password opr01
[] </baan4/bse/security>

And from /etc/passwd:
[] </baan4/bse/security> grep opr01 /etc/passwd
opr01:!:238:125:Franci :/users/bsp/sys/opr01:/usr/bin/ksh
[] </baan4/bse/security>

I will continue to test. Maybe I missed something.

ps - thx for the effort YOU make into this sw
__________________
Franci
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW: vbcode CODE extensions patvdv About Baanboard.com 3 13th March 2003 12:19
CODE: AWKward Script for Baan Reports' passage to MS Excel sitarammani Code & Utilities 19 31st August 2002 17:50
CODE: Retrieve ENUM Description from SQL Server with VB Ruskin Code & Utilities 8 8th July 2002 17:37


All times are GMT +2. The time now is 01:04.


©2001-2017 - Baanboard.com - Baanforums.com