Cygwin AD integration home/shell changes
Andrey Repin
anrdaemon@yandex.ru
Wed Dec 3 07:35:00 GMT 2014
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 <Windows username>". 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@yandex.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
More information about the Cygwin
mailing list