X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.3 required=5.0	tests=BAYES_20,RCVD_NUMERIC_HELO,SPF_HELO_PASS,TW_MK,TW_YP,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
connect(): No such file or directory
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: NIS/yp ported?
Date: Thu, 29 Apr 2010 22:33:43 -0700
Lines: 32
Message-ID: <hrdq3o$rr8$1@dough.gmane.org>
References: <hrdjoo$drr$1@dough.gmane.org> <4BDA6093.2010101@bopp.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b2pre Thunderbird/3.0.4
In-Reply-To: <4BDA6093.2010101@bopp.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 04/29/2010 09:46 PM, Jeremy Bopp wrote:
> Andrew DeFaria wrote:
>> I'm just curious - I have a function that I use on Unix to do 
>> basically a ypcat passwd | grep -i $@. It's very useful in looking up 
>> users especially since ore and more corporations use anonymous 
>> numbers or IDs to represent people. But I have to log into the Unix 
>> system to do it.
> Are similar/identical IDs created for those users in the Windows 
> domain? If so, you can use mkpasswd in place of ypcat passwd to get 
> something
> roughly equivalent.
Now that's an idea! You got me thinking. I'm really just using this 
function as a quick look up of info so that I can quickly say "Well this 
user id, d23834 is really John Smith" or "Well Smith's user id is 
d23834". mkpasswd might do that for me! (I know also that I could script 
up calls to net user but it's not as straight forward).
>> I was wondering if there was a cygwin port of NIS or YP so that I 
>> could do this ypcat from within Cygwin.
> I haven't heard of this being available, and a search doesn't turn up 
> ypcat in any Cygwin package. However, someone apparently ported the
> Linux tools to Cygwin at one time:
>
> http://www.cygwin.com/ml/cygwin-apps/2003-09/msg00144.html
>
> Too bad the message didn't include any instructions and only refers to 
> a website which appears to be dead now.
Ugh. Well mkpasswd might suffice... Thanks.
-- 
Andrew DeFaria <http://defaria.com>
Cranial-rectal inversion disorder - a condition where one's head is 
where one's butt should be and vice-versa, causing an otherwise sensible 
person to make an ass of himself.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

