Welcome, Guest. Please login or register.

Login with username, password and session length
March 12, 2010, 07:07:45 am

 

   Home   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: Pluggable authentication modules  (Read 3374 times)
bluefoxicy
New User
*
Offline Offline

Posts: 31


View Profile
« on: October 31, 2007, 09:29:25 pm »

A future version of EyeOS should supply a pluggable authentication module structure like with MediaWiki.  This would allow an eyepackage to include a system-level add-on for authentication, and thus allow a separate module to provide browser pass-thru or LDAP/Active Directory log-on without further EyeOS core code modification.

This leaves two authentication strategies.  EyeOS could keep its authentication in its core and just overload it when a new authentication module gets selected.  Alternately, EyeOS could abstract its own core authentication from itself and simply come with a default authentication module.  EyeOS could also disallow removing the last installed authentication module.

A further consideration, the use of modules in a hierarchy becomes essential.  The basic authentication module might provide root log-on; then an LDAP module may provide domain log-in.  A user may want local users to override LDAP, or want LDAP to override local; in such a case, the user would have to rank modules so that the first in hierarchy to actually know about the user can allow/deny log-in.  If the top of the hierarchy doesn't contain information on the user, it should pass through to the next.
Logged
Jose Carlos Norte
eyeOS Team
Senior User
*****
Offline Offline

Posts: 369



View Profile WWW
« Reply #1 on: November 04, 2007, 08:50:13 pm »


Since 1.2 eyeOS have PAM included in the UM kernel service.
Logged
Mathias
New User
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: November 07, 2007, 11:48:47 pm »


could you give us an example how to auth via pam?
Logged
Jose Carlos Norte
eyeOS Team
Senior User
*****
Offline Offline

Posts: 369



View Profile WWW
« Reply #3 on: November 08, 2007, 01:09:59 am »


PAM in eyeOS is Pluggable authentication Modules, this mean that you can create a module, for example, mysql and have your users in mysql and use this module to login against it.
Logged
bluefoxicy
New User
*
Offline Offline

Posts: 31


View Profile
« Reply #4 on: November 08, 2007, 03:53:12 pm »

Wiki page for example auth module?  I recommend a hard coded user/password module for simplicity (i.e. a php file has an array users['user_name'] = md5(password)).  That should supply skeletal infrastructure to avoid overwhelming the user with complex code examples (a lot of such examples also become basic MySQL or LDAP examples, which pollutes the core purpose).

Logged
Mathias
New User
*
Offline Offline

Posts: 7


View Profile
« Reply #5 on: November 19, 2007, 08:57:09 pm »


For example, I try to allow all local users (passwd/shadow) to login on eyeOS.
I suppose that I have to create a file for eyeOS in /etc/pam.d.
So first, what I have to do, that eyeOS know that it should use the file I created?

Logged
AnthongRedbeard
Junior User
**
Offline Offline

Posts: 65


View Profile
« Reply #6 on: November 20, 2007, 03:15:21 pm »

Mathias, as far as I know eyeOS is not setup to use server OS authentication yet. eyeOS has it's own authentication system and user management.
Logged
Daniel Sousa
eyeOS Team
Hero User
*****
Offline Offline

Posts: 1335


View Profile
« Reply #7 on: November 20, 2007, 06:53:07 pm »

I'm actually integrating eyeOS with the phpBB user manager, so users who have an account in the forum of my site (which are also used for other things in the site) can access to a eyeOS account.

How it is working:
-- A user must firstly register on the forum.
-- Then if the registered user wants to use also eyeOS, is just login in eyeOS with the forum user+pass and then eyeOS creates the user (after checking the db) and asks for a new pass (only for eyeOS).
-- After all, is just login in eyeOS with the pass created, it don't checks the db anymore for that user Smiley
Logged
phx
New User
*
Offline Offline

Posts: 1


View Profile
« Reply #8 on: November 22, 2007, 04:24:08 am »

Hi guys,

I don't know if you've heard about this, but apparently Smartcard authentication for WebApps should be easier now:
http://www.gemalto.com/php/pr_view.php?id=257

Quote
SConnect is a platform and browser agnostic technology enabling web applications and services to connect to any smart card. Eliminating the need for middleware and working seamlessly with existing infrastructures, SConnect is a paradigm shift in Web-based service delivery that let applications leverage smart cards for security and personalization.

Something worth looking at, IMHO.
Tks,

Richard

Logged
kccheng
New User
*
Offline Offline

Posts: 5


View Profile
« Reply #9 on: November 26, 2007, 11:36:57 am »

Hi,

PAM is a required feature I need to have before I can use eyeOS for real work (which I really want to).
I just take a quick look of eyeOS's source code.   Please let me explain what I understanding about
the PAM in eyeOS and please feel free to correct me if I were wrong.

The default eyeOS auth. use XML to record user's profile.  In order to create a new PAM method,
all I need to do is implement the following PHP interface:
 
    service_um_createUser($params = null)
    service_um_retriveUser($params = null)
    service_um_userExist($params = null)
    service_um_updateUser($params = null)
    service_um_deleteUser($params = null)
    service_um_login($params = null)
    service_um_getCurrentGroups()
    service_um_getCurrentUserDir()
    service_um_checkAdminPermissions()
    service_um_getUserDir($params=null)
    service_um_getUserFilePath($params=null)

Am I correct ?   Thanks


Regards
KC
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!