public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Is it possible to use centralized passwords with cygwin inetd?
@ 2002-12-05 14:11 Bruce P. Osler
  2002-12-06 13:20 ` Andrew DeFaria
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce P. Osler @ 2002-12-05 14:11 UTC (permalink / raw)
  To: cygwin; +Cc: Bruce Osler

For starters - I'd like to contribute to the Cygwin love-fest going
on.  I think Cygwin is an awesome environment with huge benefits
for folks working under windows.

Today I'm interested in finding out wether I can use networked
password services with the cygwin inetd.  At work I would like to
setup a series of computers with Cygwin tools all of which are
running the Cygwin inetd.  As there are a couple of hundred engineers
in this environment the option of maintaining multiple /etc/passwd
files is a bit onerous (if not unreasonable).  All of these computers
are already hooked into an environment where the user passwords are
provided and managed centrally to an NT domain.  Is there any way
I can have Cygwin/inetd use the central domain password service
for authentication?

- Bruce


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Is it possible to use centralized passwords with cygwin inetd?
  2002-12-05 14:11 Is it possible to use centralized passwords with cygwin inetd? Bruce P. Osler
@ 2002-12-06 13:20 ` Andrew DeFaria
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew DeFaria @ 2002-12-06 13:20 UTC (permalink / raw)
  To: cygwin

(Send to the list and the sender)...

Bruce P. Osler wrote:

> For starters - I'd like to contribute to the Cygwin love-fest going
> on.  I think Cygwin is an awesome environment with huge benefits
> for folks working under windows.
>
> Today I'm interested in finding out wether I can use networked
> password services with the cygwin inetd.  At work I would like to
> setup a series of computers with Cygwin tools all of which are
> running the Cygwin inetd.  As there are a couple of hundred engineers
> in this environment the option of maintaining multiple /etc/passwd
> files is a bit onerous (if not unreasonable).  All of these computers
> are already hooked into an environment where the user passwords are
> provided and managed centrally to an NT domain.  Is there any way
> I can have Cygwin/inetd use the central domain password service
> for authentication?

Short answer: Yes.

Slightly longer answer: Create a passwd file with mkpasswd -d and store 
it on a common area. Then symlink /etc/passwd -> 
//<commonserver>/<commonshare>/passwd. Normally people worry about 
symlinking such files as /etc/passwd because it would be hard to boot up 
and log into the machine if the network were down. But you don't boot up 
nor log into Cygwin as per se, rather you log into Windows first.

You might wish to do this for /etc/group too.

You might wish to scriptize mkpasswd to call /bin/mkpasswd then perform 
some fix ups on the resulting passwd file before making it global.

You might wish to develop a script to insure the above symlink(s) are 
properly in place as well as say mounting //<commonserver>/<homeshare> 
-> /home, etc.

This is what I do and it works very well.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Is it possible to use centralized passwords with cygwin   inetd ?
  2002-12-06  8:49       ` Max Bowsher
@ 2002-12-06  9:04         ` Bruce P. Osler
  0 siblings, 0 replies; 8+ messages in thread
From: Bruce P. Osler @ 2002-12-06  9:04 UTC (permalink / raw)
  To: Max Bowsher; +Cc: Bruce P. Osler, cygwin

Thnx, the pieces fit now.

- Bruce


At 04:42 PM 12/6/2002 +0000, Max Bowsher wrote:
>Bruce P. Osler <brosler@cisco.com> wrote:
>
> > Hmmm, I had thought the long ugly string (eg
> > S-1-5-21-1677152479-820197058- 1843927889-1002) was the password.
>
>No, that's the Windows SID. The password field is the one with
>"unused_by_nt/2000/xp".
>
>Max.
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Is it possible to use centralized passwords with cygwin   inetd ?
  2002-12-06  7:08     ` Bruce P. Osler
@ 2002-12-06  8:49       ` Max Bowsher
  2002-12-06  9:04         ` Bruce P. Osler
  0 siblings, 1 reply; 8+ messages in thread
From: Max Bowsher @ 2002-12-06  8:49 UTC (permalink / raw)
  To: Bruce P. Osler; +Cc: cygwin

Bruce P. Osler <brosler@cisco.com> wrote:

> Hmmm, I had thought the long ugly string (eg
> S-1-5-21-1677152479-820197058- 1843927889-1002) was the password.

No, that's the Windows SID. The password field is the one with
"unused_by_nt/2000/xp".

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Is it possible to use centralized passwords with cygwin  inetd ?
  2002-12-06  7:02   ` Max Bowsher
@ 2002-12-06  7:08     ` Bruce P. Osler
  2002-12-06  8:49       ` Max Bowsher
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce P. Osler @ 2002-12-06  7:08 UTC (permalink / raw)
  To: Max Bowsher; +Cc: Vince Hoffman, Bruce P. Osler, cygwin

Hmmm, I had thought the long ugly string (eg S-1-5-21-1677152479-820197058-
1843927889-1002) was the password.  Sounds like I made the wrong assumption.
So ... if this is the case, it sounds like it's workable.  Especially so
given that the employee roles haven't changed in nearly two years :-/

- Bruce


At 02:39 PM 12/6/2002 +0000, Max Bowsher wrote:
>Bruce P. Osler <brosler@cisco.com> wrote:
>
> > I guess I was looking for something a bit more dynamic.
>
>IIRC - If you do what was suggested, you should only need to rerun mkpasswd
>when users are added or removed, not when they change their password.
>
>Not wonderful, but distinctly better that what you imagine.
>
>If you look inside a mkpasswd-generated passwd file, you will see that there
>is no password info stored there.
>
>Max.
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Is it possible to use centralized passwords with cygwin  inetd ?
  2002-12-06  6:36 ` Bruce P. Osler
@ 2002-12-06  7:02   ` Max Bowsher
  2002-12-06  7:08     ` Bruce P. Osler
  0 siblings, 1 reply; 8+ messages in thread
From: Max Bowsher @ 2002-12-06  7:02 UTC (permalink / raw)
  To: Vince Hoffman, Bruce P. Osler; +Cc: 'Bruce P. Osler', cygwin

Bruce P. Osler <brosler@cisco.com> wrote:

> I guess I was looking for something a bit more dynamic.

IIRC - If you do what was suggested, you should only need to rerun mkpasswd
when users are added or removed, not when they change their password.

Not wonderful, but distinctly better that what you imagine.

If you look inside a mkpasswd-generated passwd file, you will see that there
is no password info stored there.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* RE: Is it possible to use centralized passwords with cygwin inetd ?
  2002-12-06  2:56 Is it possible to use centralized passwords with cygwin inetd ? Vince Hoffman
@ 2002-12-06  6:36 ` Bruce P. Osler
  2002-12-06  7:02   ` Max Bowsher
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce P. Osler @ 2002-12-06  6:36 UTC (permalink / raw)
  To: Vince Hoffman; +Cc: 'Bruce P. Osler', cygwin

I guess I was looking for something a bit more dynamic.  I understand
that I can create entries on my local machine which contain the domain
users password.  The issue for me is one of centralization.  Is there
a way I can bypass the local /etc/passwd file in order that cygwin
directly queries the network resource.  To do this I would imagine an
exchange similar to the following would have to be seen:

brosler@WHEREVER-NT ~
$ telnet brosler-nt
Trying 172.27.57.214...
Connected to brosler-nt.foobar.com.
Escape character is '^]'.

CYGWIN_NT-4.0 1.3.15(0.63/3/2) (brosler-nt) (tty0)

login: FOOBAR_ENG\brosler
password:

brosler-nt@BROSLER-nt ~
$



In this instance the /etc/passwd file would NOT contain an entry for
this specific user, but rather it would contain an entry for something
like "U-FOOBAR_ENG\everyone" or some such thing which would cause the
passwd agent to direct the query to the network instead of at the local
passwd file.

I mean, inside cisco there's something on the order of 40000 employees.
In my imediate group there's over 400.  The idea that all of them are
never going to change their password is ludicrous as well as the nature
of having to pull down 400 passwords on a periodic basis (NT reboots are
not an unknown :-)  As all this password stuff is already accounted for
on a network server somewhere in the ether, why not take advantage of it.

- Bruce




At 10:41 AM 12/6/2002 +0000, Vince Hoffman wrote:
>Cygwin fully supports domain users. just run `mkpasswd -d <domain name> >>
>/etc/passwd` on each box.
>(setup may run this automaticly these days i'm not sure so check if you
>already have a list of domain users in your passwd file.)
>
>
> > -----Original Message-----
> > From: Bruce P. Osler [mailto:brosler@cisco.com]
> > Sent: 05 December 2002 22:04
> > To: cygwin@cygwin.com
> > Cc: Bruce Osler
> > Subject: Is it possible to use centralized passwords with
> > cygwin inetd?
> >
> >
> > For starters - I'd like to contribute to the Cygwin love-fest going
> > on.  I think Cygwin is an awesome environment with huge benefits
> > for folks working under windows.
> >
> > Today I'm interested in finding out wether I can use networked
> > password services with the cygwin inetd.  At work I would like to
> > setup a series of computers with Cygwin tools all of which are
> > running the Cygwin inetd.  As there are a couple of hundred engineers
> > in this environment the option of maintaining multiple /etc/passwd
> > files is a bit onerous (if not unreasonable).  All of these computers
> > are already hooked into an environment where the user passwords are
> > provided and managed centrally to an NT domain.  Is there any way
> > I can have Cygwin/inetd use the central domain password service
> > for authentication?
> >
> > - Bruce
> >
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting:         http://cygwin.com/bugs.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* RE: Is it possible to use centralized passwords with cygwin inetd ?
@ 2002-12-06  2:56 Vince Hoffman
  2002-12-06  6:36 ` Bruce P. Osler
  0 siblings, 1 reply; 8+ messages in thread
From: Vince Hoffman @ 2002-12-06  2:56 UTC (permalink / raw)
  To: 'Bruce P. Osler', cygwin

Cygwin fully supports domain users. just run `mkpasswd -d <domain name> >>
/etc/passwd` on each box.
(setup may run this automaticly these days i'm not sure so check if you
already have a list of domain users in your passwd file.)


> -----Original Message-----
> From: Bruce P. Osler [mailto:brosler@cisco.com]
> Sent: 05 December 2002 22:04
> To: cygwin@cygwin.com
> Cc: Bruce Osler
> Subject: Is it possible to use centralized passwords with 
> cygwin inetd?
> 
> 
> For starters - I'd like to contribute to the Cygwin love-fest going
> on.  I think Cygwin is an awesome environment with huge benefits
> for folks working under windows.
> 
> Today I'm interested in finding out wether I can use networked
> password services with the cygwin inetd.  At work I would like to
> setup a series of computers with Cygwin tools all of which are
> running the Cygwin inetd.  As there are a couple of hundred engineers
> in this environment the option of maintaining multiple /etc/passwd
> files is a bit onerous (if not unreasonable).  All of these computers
> are already hooked into an environment where the user passwords are
> provided and managed centrally to an NT domain.  Is there any way
> I can have Cygwin/inetd use the central domain password service
> for authentication?
> 
> - Bruce
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-12-06 21:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 14:11 Is it possible to use centralized passwords with cygwin inetd? Bruce P. Osler
2002-12-06 13:20 ` Andrew DeFaria
2002-12-06  2:56 Is it possible to use centralized passwords with cygwin inetd ? Vince Hoffman
2002-12-06  6:36 ` Bruce P. Osler
2002-12-06  7:02   ` Max Bowsher
2002-12-06  7:08     ` Bruce P. Osler
2002-12-06  8:49       ` Max Bowsher
2002-12-06  9:04         ` Bruce P. Osler

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 read-only IMAP folder(s) and NNTP newsgroup(s).