I struggled to get ASE and PAM auth running on Ubuntu. In hope this might help other users:
1) Prepare PAM. Create a the file /etc/pam.d/ase with the following contents
Code:
auth required pam_unix.so
2) Assuming your sybase process user is called sybase, you must add this user to the shadow group in order to get PAM going. Do so by issuing
Code:
root@sybase# usermod -a -G shadow sybase
3) Enable PAM authentication in sybase. I assume sybase is installed in /opt/sybase
Code:
sybase@sybase:~$ cd /opt/sybase
sybase@sybase:/opt/sybase$ . SYBASE.sh
sybase@sybase:/opt/sybase$ isql -U sa
Password:
1> sp_configure "enable pam user auth",2
2> go
...
1> quit
This should get PAM up and running... now we can test it.
1) create a system user
Code:
sybase@sybase:~# useradd -MN sybtest
sybase@sybase:~# passwd sybtest
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
sybase@sybase:~#
2) create a sybase login (login as sybase user)
Code:
sybase@sybase:~$ cd /opt/sybase
sybase@sybase:/opt/sybase$ . SYBASE.sh
sybase@sybase:/opt/sybase$ isql -U sa
Password:
1>create login sybtest with password anypass
2>go
1>quit
3) tryout the new login (login as sybase user) use the unix password for the isql login!
Code:
sybase@sybase:~$ cd /opt/sybase
sybase@sybase:/opt/sybase$ . SYBASE.sh
sybase@sybase:/opt/sybase$ isql -U sybtest
Password:
1>
AAAAAAAAAAAAaaaaand we are done! have fun!
Bookmarks