eppesuiG
5th November 2007, 16:39
Hi all,
I am testing a new linux installation where all users are defined in a windows PDC. So far I configured the machine so that a windows user may access via ssh, samba and rexec.
Now i am facing the problem of accessing the ERP. I have two different tries:

1. using rexec I get errors in $BSE/log/log.ipc_info6.2 since my windows user is called "Baan" while the baan user is called "baan". I tried to write a pam-filter for changing the username case, but I still cannot make it work. The exact error is:
2007-11-05[14:02:11(UTC+00:00)]:E:root: ******* S T A R T of Error message *******
2007-11-05[14:02:11(UTC+00:00)]:E:root: Log message called from /view/port.7.1d.16/vobs/tt/lib/al_1/al_env.c: #387 keyword: initOSUserNa
me
2007-11-05[14:02:11(UTC+00:00)]:E:root: Pid 11857 Uid 10000 Euid 10000 Gid 10002 Egid 10002 Pset baanlnx:11857
2007-11-05[14:02:11(UTC+00:00)]:E:root: user_type S language 2 user_name root tty locale ISO88591/NULL
2007-11-05[14:02:11(UTC+00:00)]:E:root: Errno 0 bdb_errno 0
2007-11-05[14:02:11(UTC+00:00)]:E:root: Log_mesg: Getting OS user failed
2007-11-05[14:02:11(UTC+00:00)]:E:root: ******* E N D of Error message *******
2007-11-05[14:02:11(UTC+00:00)]:E:root:
2007-11-05[14:02:11(UTC+00:00)]:E:root: ******* S T A R T of Error message *******
2007-11-05[14:02:11(UTC+00:00)]:E:root: Log message called from /view/port.7.1d.16/vobs/tt/lib/al_1/al_log.c: #267 keyword: log_set_prog
name
2007-11-05[14:02:11(UTC+00:00)]:E:root: Pid 11857 Uid 10000 Euid 10000 Gid 10002 Egid 10002 Pset baanlnx:11857
2007-11-05[14:02:11(UTC+00:00)]:E:root: user_type S language 2 user_name root tty locale ISO88591/NULL
2007-11-05[14:02:11(UTC+00:00)]:E:root: Errno 0 bdb_errno 0
2007-11-05[14:02:11(UTC+00:00)]:E:root: Log_mesg: Could not find Baan user name; exiting.
2007-11-05[14:02:11(UTC+00:00)]:E:root: ******* E N D of Error message *******


2. using blogind, I cannot login at all. It seems that blogin do not try to use PAM even if it tell it does. Its message on screen (when run with option "-d") is
Daemon: Incoming connection, spawn child.
Daemon: revert to listen-mode.
Child: handle BaanLogin request.
Child: received: user baan, action 1
IBCmd /baan/bin/ipc_boot, bseVersion 6.2
Try authentication via PAM
No success via PAM; try classic route
Function get_password failed for user baan
blogind6.2: error retrieving system password for user baan
Child: logon for baan failed.
but an strace log shows
15294 rt_sigaction(SIGCHLD, {0x1000000000000000, [], SA_RESTORER|SA_RESTART|SA_INTERRUPT|SA_NOMASK|SA_ONESHOT|SA_SIGINFO|0x3ff4ff0, (nil
)}, {0x1000000000000001, ~[INT QUIT TRAP ABRT FPE USR1 SEGV USR2 TERM CHLD WINCH RT_2 RT_7 RT_8 RT_10 RT_11 RT_12 RT_14 RT_15 RT_17 RT_1
8 RT_20 RT_21 RT_22 RT_23 RT_24 RT_25 RT_26 RT_27 RT_29 RT_30 RT_31], 0}, 8) = 0
15294 recv(5, "BaaNLogin\0\0\1\0]\0\1GgN8XUkj&C5$UyE5N6)%D?-7%8_/\'LtR\0GgN8XUkj&C5$UyE5N6)%D?-7%8_/\'LtR\0\0\1/baan/bin/ipc_boot\0006.2
\0", 512, 0) = 107
15294 write(2, " Child: handle BaanLogin request.\n", 34) = 34
15294 write(2, " Child: received: user baan, action 1\n", 39) = 39
15294 write(2, " IBCmd /baan/bin/ipc_boot, bseVersion 6.2\n", 59) = 59
15294 write(2, "Try authentication via PAM\n", 27) = 27
15294 write(2, "No success via PAM; try classic route\n", 38) = 38
15294 geteuid32()

Is there anyone able to use blogin with PAM support?

Thanks,
Giuseppe

P.S. I am using porting set 7.1d.16 on Linux 2.6 64bit.

eppesuiG
5th November 2007, 17:25
The problem being that in /emul/ia32-linux I was missing the winbind library.