9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] authentication by LDAP?
@ 2005-12-29 22:32 Paweł Lasek
  2006-01-02 12:35 ` Steve Simon
  0 siblings, 1 reply; 11+ messages in thread
From: Paweł Lasek @ 2005-12-29 22:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi.

I'm in following situation:

We want to have a plan9 machine in school, however, it must share it's
users database (usernames, passwords, privs and so on) with NetBSD and
Linux. Not only that, we need shared home directories and texmf tree
(we don't have much space so why waste it)

network is made of 3 virtual machines:

nexus: Linux Xen 2.0 host, main server, stores all files
devil: NetBSD 3.0/xen-guest
usagi: Plan9, xen-guest

What I am looking for is a way to hook plan9's databases into LDAP or
something similar, so I could change only the global repository.

Even better if it would be possible to set the rest, like ndb by it :-)

And what about DHCP? For some reason I can't get ISC DHCPD to give
valid info about auth servers and so on, would it work to use
plan9port and plan9's dhcp server?


--
Paweł Lasek
"Once a hitokiri, always a hitokiri. This will never change" - Jine-Ei
http://plasek.jogger.pl [in polish]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2005-12-29 22:32 [9fans] authentication by LDAP? Paweł Lasek
@ 2006-01-02 12:35 ` Steve Simon
  2006-01-03  1:12   ` erik quanstrom
  2006-01-03 14:20   ` Paweł Lasek
  0 siblings, 2 replies; 11+ messages in thread
From: Steve Simon @ 2006-01-02 12:35 UTC (permalink / raw)
  To: 9fans

Currently there is no ldap client of any sort for plan9 (unless somone
knows different?). I was looking at the RFCs again over chirstmas but
once again I have recoiled from the complexity of it.

I imagine an ldap client which provides a number of interface
directories, one of them which allows arbitary searches of the
ldap database, and perhaps others which hold cached info in the
form of flat files.

One of these flat files could be DNS info from LDAP in ndb(6) format
which you could simply reference in /lib/ndb/local, e.g.

	database=
		file=/lib/ndb/root
		file=/lib/ndb/local
		file=/lib/ndb/common
		file=/mnt/ldap/ndb

This is all very neat but vapourware at present - sorry, If I do get
around to such a thing I will announce it here.

-Steve


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-02 12:35 ` Steve Simon
@ 2006-01-03  1:12   ` erik quanstrom
  2006-01-03  1:15     ` Russ Cox
  2006-01-03 14:20   ` Paweł Lasek
  1 sibling, 1 reply; 11+ messages in thread
From: erik quanstrom @ 2006-01-03  1:12 UTC (permalink / raw)
  To: 9fans, Steve Simon

is there anything about ldap that would prevent one from writing an
ldap adaptor for ndb? i was thinking something along these lines

	database=
		file=/lib/ndb/root
		dns=/srv/dns
		file=/lib/ndb/local
		file=/lib/ndb/common
		ldap=/srv/ldaps


ideally, the client could be oblivious to the source of the information.

fat chance, right?

- erik
	
"Steve Simon" <steve@quintile.net> writes

| 
| Currently there is no ldap client of any sort for plan9 (unless somone
| knows different?). I was looking at the RFCs again over chirstmas but
| once again I have recoiled from the complexity of it.
| 
| I imagine an ldap client which provides a number of interface
| directories, one of them which allows arbitary searches of the
| ldap database, and perhaps others which hold cached info in the
| form of flat files.
| 
| One of these flat files could be DNS info from LDAP in ndb(6) format
| which you could simply reference in /lib/ndb/local, e.g.
| 
| 	database=
| 		file=/lib/ndb/root
| 		file=/lib/ndb/local
| 		file=/lib/ndb/common
| 		file=/mnt/ldap/ndb
| 
| This is all very neat but vapourware at present - sorry, If I do get
| around to such a thing I will announce it here.
| 
| -Steve


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03  1:12   ` erik quanstrom
@ 2006-01-03  1:15     ` Russ Cox
  2006-01-03  2:13       ` erik quanstrom
  0 siblings, 1 reply; 11+ messages in thread
From: Russ Cox @ 2006-01-03  1:15 UTC (permalink / raw)
  To: erik quanstom, Fans of the OS Plan 9 from Bell Labs

> is there anything about ldap that would prevent one from writing an
> ldap adaptor for ndb? i was thinking something along these lines

you'd have to put it in libndb, polluting every program
that reads ndb files and the standard library.
i much prefer steve's solution.

russ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03  1:15     ` Russ Cox
@ 2006-01-03  2:13       ` erik quanstrom
  2006-01-03  2:34         ` Russ Cox
  0 siblings, 1 reply; 11+ messages in thread
From: erik quanstrom @ 2006-01-03  2:13 UTC (permalink / raw)
  To: 9fans, Russ Cox

i guess in addition to suffering linux brain dapage, i didn't explain myself well.

if one wrote an ldap fileserver that served up ndb-stype tuples in a standard
format, all the ndb library would need is a hook to talk to this fileserver instead
of parsing an ndb file. you could do the same with dns and other protocols.

- erik

Russ Cox <rsc@swtch.com> writes

| 
| > is there anything about ldap that would prevent one from writing an
| > ldap adaptor for ndb? i was thinking something along these lines
| 
| you'd have to put it in libndb, polluting every program
| that reads ndb files and the standard library.
| i much prefer steve's solution.
| 
| russ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03  2:13       ` erik quanstrom
@ 2006-01-03  2:34         ` Russ Cox
  2006-01-03  2:53           ` erik quanstrom
  0 siblings, 1 reply; 11+ messages in thread
From: Russ Cox @ 2006-01-03  2:34 UTC (permalink / raw)
  To: erik quanstrom, Fans of the OS Plan 9 from Bell Labs

> if one wrote an ldap fileserver that served up ndb-stype tuples in a standard
> format, all the ndb library would need is a hook to talk to this fileserver instead
> of parsing an ndb file. you could do the same with dns and other protocols.

yes.  and steve was saying that the hook could be
you mount the file server somewhere and then use
the name of its ndb file in /lib/ndb/local.  ndb can just
access a file like it always has been, never caring
what kind of file server provides the file.

russ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03  2:34         ` Russ Cox
@ 2006-01-03  2:53           ` erik quanstrom
  0 siblings, 0 replies; 11+ messages in thread
From: erik quanstrom @ 2006-01-03  2:53 UTC (permalink / raw)
  To: 9fans, Russ Cox

i read to much into "in the form of flat files." i guess we're in noisy agreement.

- erik


Russ Cox <rsc@swtch.com> writes

| 
| > if one wrote an ldap fileserver that served up ndb-stype tuples in a standard
| > format, all the ndb library would need is a hook to talk to this fileserver instead
| > of parsing an ndb file. you could do the same with dns and other protocols.
| 
| yes.  and steve was saying that the hook could be
| you mount the file server somewhere and then use
| the name of its ndb file in /lib/ndb/local.  ndb can just
| access a file like it always has been, never caring
| what kind of file server provides the file.
| 
| russ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-02 12:35 ` Steve Simon
  2006-01-03  1:12   ` erik quanstrom
@ 2006-01-03 14:20   ` Paweł Lasek
  2006-01-03 17:20     ` Dan Cross
  2006-01-07  3:13     ` erik quanstrom
  1 sibling, 2 replies; 11+ messages in thread
From: Paweł Lasek @ 2006-01-03 14:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 1/2/06, Steve Simon <steve@quintile.net> wrote:
>
> One of these flat files could be DNS info from LDAP in ndb(6) format
> which you could simply reference in /lib/ndb/local, e.g.
[...]
> This is all very neat but vapourware at present - sorry, If I do get
> around to such a thing I will announce it here.

It looks like it will be the first job in our 'Hack club' :D

IDEA:
On linux machine, every x hours, a cron job will check ldap database
for new/changed/deleted entries and translate them to format supported
by plan9 software (updating the fileserver's user database in the
process).

And I decided not to read RFC's nor libldap manual/code... python-ldap
or perl-ldap will be used, and since perl-ldap is written entirely in
Perl, it might be possible to set it working as native plan9
fileserver (If you call perl program native :) )


The only problem I have is:
* Is there a simple way to setup linux box as ndb/auth/fileserver and
so on for plan9?
* How can I configure some unix DHCP server to send fileserver/auth
info to plan9   (I tried with ISC DHCPd... for some reason I can't get
it working)
* OR set-up Plan9's dhcp server (dhcp info isn't going to change that
often as to use LDAP :P )


> -Steve
>


--
Paweł Lasek
"Once a hitokiri, always a hitokiri. This will never change" - Jine-Ei
http://plasek.jogger.pl [in polish]
http://plasek.wordpress.com [in polish too ;-) ]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03 14:20   ` Paweł Lasek
@ 2006-01-03 17:20     ` Dan Cross
  2006-01-04 22:13       ` Paweł Lasek
  2006-01-07  3:13     ` erik quanstrom
  1 sibling, 1 reply; 11+ messages in thread
From: Dan Cross @ 2006-01-03 17:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Jan 03, 2006 at 03:20:46PM +0100, Pawe? Lasek wrote:
> It looks like it will be the first job in our 'Hack club' :D

The first rule of Hack Club is...You don't talk about Hack Club!

	- Dan C.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03 17:20     ` Dan Cross
@ 2006-01-04 22:13       ` Paweł Lasek
  0 siblings, 0 replies; 11+ messages in thread
From: Paweł Lasek @ 2006-01-04 22:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 1/3/06, Dan Cross <cross@math.psu.edu> wrote:

> The first rule of Hack Club is...You don't talk about Hack Club!

Good One ;-)


However, we're not aspiring to be any kind of secret organisation ;-P
so it's not that useful.

And the name isn't mine -- it's literal translation of someone's else
idea (nobody thought of anything better... at least we didn't fought
over hostnames ^_-)

(Although we still didn't started official stuff as we want to bring
up Xen with at least linux working + we need to find a place so server
could work 24/7)

>         - Dan C.
>
>

--
Paweł Lasek
"Once a hitokiri, always a hitokiri. This will never change" - Jine-Ei
http://plasek.wordpress.com [in polish]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] authentication by LDAP?
  2006-01-03 14:20   ` Paweł Lasek
  2006-01-03 17:20     ` Dan Cross
@ 2006-01-07  3:13     ` erik quanstrom
  1 sibling, 0 replies; 11+ messages in thread
From: erik quanstrom @ 2006-01-07  3:13 UTC (permalink / raw)
  To: 9fans, Paweł Lasek

Paweł Lasek <pawel.lasek@gmail.com> writes

[...]

| The only problem I have is:
| * Is there a simple way to setup linux box as ndb/auth/fileserver and
| so on for plan9?

ndb works pretty well for me.

| * How can I configure some unix DHCP server to send fileserver/auth
| info to plan9   (I tried with ISC DHCPd... for some reason I can't get
| it working)

russ has ip/dhcpd working.

if i understand the ip/dhcp code from a really quick read i think you want


	vendor-option-space "plan9_";
	option plan9_.fs "fileserver";
	option plan9_.auth "authserver";



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-01-07  3:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-29 22:32 [9fans] authentication by LDAP? Paweł Lasek
2006-01-02 12:35 ` Steve Simon
2006-01-03  1:12   ` erik quanstrom
2006-01-03  1:15     ` Russ Cox
2006-01-03  2:13       ` erik quanstrom
2006-01-03  2:34         ` Russ Cox
2006-01-03  2:53           ` erik quanstrom
2006-01-03 14:20   ` Paweł Lasek
2006-01-03 17:20     ` Dan Cross
2006-01-04 22:13       ` Paweł Lasek
2006-01-07  3:13     ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).