X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=fH2xrmkkDoFv+90X H7EgdFocsGrxf+VnpAgGuV5O0yOBfDrtYxfbcwC5QQPLPXeQ81rZpZcZuuVOF0iQ v8wkOsPUA0hOesrKJTjel3QDZce0vQzIOf5YdSKs2MJh6osXrh6WVkLT7uFVYjx5 cfIxda6w82ueHFcAeUDCEGI3o8g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=+l7Ytq9qBhk61oshsng03s Psri4=; b=JR/aRaK3Xr/tnIu7gmBqQ6G2f4GHROmUikAibqDbL9LV8lCKPTLhmh Sk6hUFcFPoa1xfYCvsJHRP9p2lbag1vQbOUqn1sHavluB/McFLcaZqny/K7yU6LX FlcChAMwFOZ4gKy8b88dN/kuaWRLfcCcaaGRbtm8RaBcjk06RDMbA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Wed, 3 Dec 2014 10:26:37 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <946685207.20141203102637@yandex.ru> To: Corinna Vinschen , cygwin AT cygwin DOT com Subject: Cygwin AD integration home/shell changes In-Reply-To: <20141126205658.GA9157@calimero.vinschen.de> References: <20141110205216 DOT GJ2782 AT calimero DOT vinschen DOT de> <0B8D23F7-0258-472D-BF38-860402FD3CDC AT etr-usa DOT com> <20141111101821 DOT GO2782 AT calimero DOT vinschen DOT de> <20141111111437 DOT GB28012 AT calimero DOT vinschen DOT de> <20141126205658 DOT GA9157 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Corinna Vinschen! > Here's what you get: I finally realized, what was tingling me all this time. The implicit fallback mechanics. I'd rather want to have explicit declaration and a failure message in case something isn't right. Much easier to fix system issues, when the system tell you about them. Shouldn't be a big change, considering you already have all the facilities in order to make it works. > db_home: > windows AD and SAM: Utilizes the setting of the homeDrive or > homeDirectory attributes, or their SAM "Home folder" > counterparts. The Windows path is converted to a > POSIX path. > cygwin AD only: Shortcut for the cygwinHome attribute from > the predefined cygwinUser auxiliary class. POSIX path > expected. > unix AD only: Shortcut for the unixHomeDirectory attribute > from the posixAccount auxiliary class. POSIX path > expected. > desc AD and SAM: Fetch the home="..." > setting from the user's description attribute. > POSIX path expected. > @ad_attribute AD-only: Read AD attribute "ad_attribute" as POSIX > path. > > However, I'm contemplating to allow a Windows path > here, too. Does this make sense to you? > /path POSIX path. Remember the wildcards. > fallback If nothing works, the fallback is /home/$USERNAME > (Windows username). > db_shell: > windows Ignored. Do you want CMD instead? > cygwin AD-only: Shortcut for the cygwinShell attribute > from the cygwinUser class. POSIX path. > unix AD-only: Shortcut for the loginShell attribute > from the posixAccount class. POSIX path. > desc AD and SAM: Fetch the shell="" setting from the > user's description attribute. POSIX path. > @ad_attribute See above. > /path See above. > fallback If nothing works, the fallback is /bin/bash. > db_gecos: > windows AD and SAM: displayName attribute, or "Full Name" > setting in SAM. > cygwin AD-only: cygwinGecos attribute from cygwinUser class. > unix AD-only: gecos attribute from posixAccount class. > @ad_attribute Read AD attribute "ad_attribute" and prepend > to pw_gecos. > /path Skip the slash, prepend the reminder of the string > to pw_gecos. Note that the wildcards are still > evaluated. > fallback If nothing works, the fallback is no fallback. > Examples: > db_home: cygwin desc > The default. Try the cygwinHome attribute first. If it's empty, > evalaute the description field and see if the home dir is set via > the cygwin XML-style text. If that fails, fallback is /home/$USERNAME > (Windows username). > db_home: unix @msTSHomeDirectory /home/%u > Try the unixHomeDirectory attribute first. Empty? Try the > (otherwise unused) msTSHomeDirectory attribute. Empty? Fall back > to /home/$USER (Cygwin username). > db_gecos: @comment /Hallo%_%U > Try the comment attribute. Empty? Fall back to the string > "Hallo ". Example passwd entry: > corinna:*:1049577:1049701:Hallo > corinna,U-MY_DOM\corinna,S-1-5-21-yada-yada:/home/corinna:/bin/bash > Is this new stuff basically clear? Questions? > Please give it a try. > Thanks, > Corinna -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 03.12.2014, <10:11> Sorry for my terrible english... -- 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