OpenLDAP Schemas

This is a discussion on OpenLDAP Schemas within the Linux Networking forums, part of the Linux Forums category; I'm looking into adding support for LDAP in our embedded product. I'm not sure where to add special ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2003
Chris Fowler
 
Posts: n/a
Default OpenLDAP Schemas

I'm looking into adding support for LDAP in our embedded
product. I'm not sure where to add special attributes? Does
our compnay need to register for a schema number like we
did for snmp?

I have special acls that look like the followig:


Power Control = true/false
Admin Privs = true/false
Access Port 1 = true/false
Access Port 7 = true/false

As you can see those do not fit in /etc/passwd and would not
fit for a regular UNIX system. They are special to our product.

Thanks,
Chris
Reply With Quote
  #2 (permalink)  
Old 09-10-2003
F.Wiegerinck
 
Posts: n/a
Default Re: OpenLDAP Schemas

You could use PAM to authenticate users for power control by adding
them to a special group using pam_wheel and define another gid then
0.

something like
poweroff authenticate sufficent /lib/security/pam_wheel.so use_uid group

Access to port 1 and 7 -> is this hardware? and accessable via
/dev? The change ownership to a specialised group can help?
make a group accessToPort1. Make accessToPort1 owner of /dev/port1
and add everone who has access to this group..
The same for Port 7...

For admin Privs? Depends on how the admin works...



Frank Wiegerinck

Chris Fowler wrote:
> I'm looking into adding support for LDAP in our embedded
> product. I'm not sure where to add special attributes? Does
> our compnay need to register for a schema number like we
> did for snmp?
>
> I have special acls that look like the followig:
>
>
> Power Control = true/false
> Admin Privs = true/false
> Access Port 1 = true/false
> Access Port 7 = true/false
>
> As you can see those do not fit in /etc/passwd and would not
> fit for a regular UNIX system. They are special to our product.
>
> Thanks,
> Chris


Reply With Quote
  #3 (permalink)  
Old 09-10-2003
Dave Carrigan
 
Posts: n/a
Default Re: OpenLDAP Schemas

Chris Fowler <cfowler@linuxiceberg.com> writes:

> I'm looking into adding support for LDAP in our embedded product. I'm
> not sure where to add special attributes? Does our compnay need to
> register for a schema number like we did for snmp?


If your company already has an OID number for SNMP, add another branch
under that OID for ldap schemas (and probably add three more branches
for objectclasses, attributes and syntaxes). There's nothing special
about an OIDs that makes them SNMP-only; what you do with your OID
branch is up to you.

> I have special acls that look like the followig:
>
> Power Control = true/false
> Admin Privs = true/false
> Access Port 1 = true/false
> Access Port 7 = true/false
>
> As you can see those do not fit in /etc/passwd and would not
> fit for a regular UNIX system. They are special to our product.


Create a new objectclass that inherits from posixaccount; define the
attributes and add them to this objectclass.

--
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0