Re: ispman: pam/ldap+flat files

2002-07-19 Thread Jorge . Lehner
Hello!

On Wed, Jul 17, 2002 at 09:40:23PM -0400, Chris Zubrzycki wrote:
...
> I am brand new to openldap though. I set up ispman, and can use it to 
> add domains and such, but I am not sure how to add ldap to the pam 
> files so that it checks for local accounts, and if none, it then checks 
> ldap. I saw some sample conf files on the net, but they did not come 
> with any documentation.

Initial PAM efforts had good documentation, afterwards it seems that
people had just been hacking up additional modules for it.

I will include my /etc/pam.d/login file here:
-
# Authentication: try unix first, then LDAP if that fails

# Deny globally (maybe)
authrequisite   pam_securetty.so
authrequisite   pam_nologin.so
# Make it look pretty
authrequiredpam_issue.so
authrequiredpam_env.so
# Autenticate
authsufficient  pam_unix_auth.so
authsufficient  pam_smb_auth.so use_first_pass
authsufficient  pam_ldap.so use_first_pass ignore_unknown_user
authrequiredpam_deny.so

# Note: ldap says it does not know unknown users, this reveals that
# fact to the person logging in.  So we let them fall through and
# fail.  This way we also myeld a homogeneos look to the user.


# Account: try unix first, then LDAP if that fails

account requisite   pam_access.so
account sufficient  pam_unix_acct.so
account requiredpam_ldap.so


# Session: issue message of the day, show the users mail
#  doubt that this works with Maildir

# Only for Home-Servers
sessionrequired pam_mkhomedir.so
# More messages to the user
sessionoptional pam_motd.so
sessionoptional pam_lastlog.so
sessionoptional pam_mail.so dir=~/Maildir/ empty
# Notify the sysadmin about the session - syslog
sessionrequired pam_unix_session.so

--

Note the difference between the authentication and the "account"
step.  The first establishes, if 

 a) any user is allowed (at this time, from that host, etc.)
 b) if the user does prove to be him/her to his/her account (authentication)

The second step checks, if the user (now authenticated) is allowed to
access his/her account (at this time, until payment ...)

The "session" (setup) step, does not involve ldap and is not supported
either, although principially it could be nice too.

However note, that there exist other approach to Autentication
databases to, nsswitch!

With the following setup:
--
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: files ldap
group:  files ldap
shadow: files ldap

hosts:  files dns
networks:   files

protocols:  files
services:   files
ethers: files
rpc:files

netgroup:   nis
---

you make some programms check first the /etc/passwd file to see if it
finds the user, and then the ldap database.

This is very nice, because you can autenticate root, and some "local"
users, even if the ldap server does not work, or the network
connection gets lost.

I have both aproaches on my home-network, and the sad thing about it
is, that actually Debian is not consistent about either, so things do
not always work out well (to save the honor of Debian: at my knowledge
there is no system which works consistently).

> 
> Could anyone point me to some good resources to get me going? I prefer 
> online for the moment, I am planning on getting a book or two later.

???

Hope this Megamail helped something out.

Best Regards,

 Jorge-León


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




ispman: pam/ldap+flat files

2002-07-17 Thread Chris Zubrzycki
Hey all, I am setting up a server for virtual hosting. I chose to use 
ispman, because that seemed the best choice: most integrated, and 
openSource :-)

I am brand new to openldap though. I set up ispman, and can use it to 
add domains and such, but I am not sure how to add ldap to the pam 
files so that it checks for local accounts, and if none, it then checks 
ldap. I saw some sample conf files on the net, but they did not come 
with any documentation.

Could anyone point me to some good resources to get me going? I prefer 
online for the moment, I am planning on getting a book or two later.

Thanks for the help,
-chris zubrzycki
- --
PGP public key: http://homepage.mac.com/beren/publickey.txt
ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070

Unix  _IS_  user friendly... It's just selective about who its friends 
are.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



ispman: pam/ldap+flat files

2002-07-17 Thread Chris Zubrzycki

Hey all, I am setting up a server for virtual hosting. I chose to use 
ispman, because that seemed the best choice: most integrated, and 
openSource :-)

I am brand new to openldap though. I set up ispman, and can use it to 
add domains and such, but I am not sure how to add ldap to the pam 
files so that it checks for local accounts, and if none, it then checks 
ldap. I saw some sample conf files on the net, but they did not come 
with any documentation.

Could anyone point me to some good resources to get me going? I prefer 
online for the moment, I am planning on getting a book or two later.

Thanks for the help,


-chris zubrzycki
- --
PGP public key: http://homepage.mac.com/beren/publickey.txt
ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070


Unix  _IS_  user friendly... It's just selective about who its friends 
are.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]