Codebase list realmd / f97c396
Imported Upstream version 0.16.2 Michael Biebl 8 years ago
26 changed file(s) with 125 addition(s) and 83 deletion(s). Raw diff Collapse all Expand all
102102
103103 include doc/manual/Makefile.am
104104 include doc/internals/Makefile.am
105 include doc/website/Makefile.am
105106
106107 EXTRA_DIST += \
107108 doc/version.xml.in \
108109 doc/version.xml
109110
110111 DISTCLEANFILES += \
111 website/Makefile
112 doc/website/Makefile
112113
113 website:
114 make -C website all
115
116 upload-website: manual/index.html internals/realmd-internals.html
117 make -C website upload
114 upload-website: website manual/index.html internals/realmd-internals.html
118115 rsync -Hvax manual/./ anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/docs/./
119116 rsync -Hvax internals/./ anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/internals/./
117 rsync -Hvax --exclude docs --exclude internals --exclude releases \
118 html/* anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/
120119
121120 dist-doc-hook: manual/index.html
122121 @mkdir $(distdir)/manual
113113 @ENABLE_DOC_TRUE@ $(DBUS_DOC_GENERATED) $(DBUS_ESCAPED) \
114114 @ENABLE_DOC_TRUE@ $(man8_MANS) $(man5_MANS) manual/index.html \
115115 @ENABLE_DOC_TRUE@ *.tmp $(NULL) internals/realmd-internals.html \
116 @ENABLE_DOC_TRUE@ $(NULL)
116 @ENABLE_DOC_TRUE@ $(NULL) html/*
117117 @ENABLE_DOC_TRUE@am__append_5 = \
118 @ENABLE_DOC_TRUE@ website/Makefile
118 @ENABLE_DOC_TRUE@ doc/website/Makefile
119119
120120 subdir = .
121121 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
579579 DIST_SUBDIRS = $(SUBDIRS)
580580 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
581581 $(srcdir)/dbus/Makefile.am $(srcdir)/doc/internals/Makefile.am \
582 $(srcdir)/doc/manual/Makefile.am $(srcdir)/service/Makefile.am \
583 $(srcdir)/tests/Makefile.am $(srcdir)/tools/Makefile.am \
584 $(top_srcdir)/build/compile $(top_srcdir)/build/depcomp \
585 $(top_srcdir)/build/install-sh $(top_srcdir)/build/missing \
586 $(top_srcdir)/build/test-driver \
582 $(srcdir)/doc/manual/Makefile.am \
583 $(srcdir)/doc/website/Makefile.am \
584 $(srcdir)/service/Makefile.am $(srcdir)/tests/Makefile.am \
585 $(srcdir)/tools/Makefile.am $(top_srcdir)/build/compile \
586 $(top_srcdir)/build/depcomp $(top_srcdir)/build/install-sh \
587 $(top_srcdir)/build/missing $(top_srcdir)/build/test-driver \
587588 $(top_srcdir)/doc/version.xml.in AUTHORS COPYING ChangeLog \
588589 INSTALL NEWS README build/compile build/depcomp \
589590 build/install-sh build/missing
11531154 .SUFFIXES: .conf .conf.in .desktop.in .desktop.in.in .service .service.in .5 .8 .c .log .o .obj .test .test$(EXEEXT) .trs .xml
11541155 am--refresh: Makefile
11551156 @:
1156 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/dbus/Makefile.am $(srcdir)/service/Makefile.am $(srcdir)/tests/Makefile.am $(srcdir)/tools/Makefile.am $(srcdir)/doc/manual/Makefile.am $(srcdir)/doc/internals/Makefile.am $(am__configure_deps)
1157 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/dbus/Makefile.am $(srcdir)/service/Makefile.am $(srcdir)/tests/Makefile.am $(srcdir)/tools/Makefile.am $(srcdir)/doc/manual/Makefile.am $(srcdir)/doc/internals/Makefile.am $(srcdir)/doc/website/Makefile.am $(am__configure_deps)
11571158 @for dep in $?; do \
11581159 case '$(am__configure_deps)' in \
11591160 *$$dep*) \
11751176 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
11761177 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
11771178 esac;
1178 $(srcdir)/dbus/Makefile.am $(srcdir)/service/Makefile.am $(srcdir)/tests/Makefile.am $(srcdir)/tools/Makefile.am $(srcdir)/doc/manual/Makefile.am $(srcdir)/doc/internals/Makefile.am $(am__empty):
1179 $(srcdir)/dbus/Makefile.am $(srcdir)/service/Makefile.am $(srcdir)/tests/Makefile.am $(srcdir)/tools/Makefile.am $(srcdir)/doc/manual/Makefile.am $(srcdir)/doc/internals/Makefile.am $(srcdir)/doc/website/Makefile.am $(am__empty):
11791180
11801181 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
11811182 $(SHELL) ./config.status --recheck
34683469 @ENABLE_DOC_TRUE@ done
34693470
34703471 @ENABLE_DOC_TRUE@website:
3471 @ENABLE_DOC_TRUE@ make -C website all
3472
3473 @ENABLE_DOC_TRUE@upload-website: manual/index.html internals/realmd-internals.html
3474 @ENABLE_DOC_TRUE@ make -C website upload
3472 @ENABLE_DOC_TRUE@ SRCDIR=$(srcdir) BUILDDIR=$(builddir) python $(srcdir)/doc/website/jinja2-build.py
3473
3474 @ENABLE_DOC_TRUE@upload-website: website manual/index.html internals/realmd-internals.html
34753475 @ENABLE_DOC_TRUE@ rsync -Hvax manual/./ anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/docs/./
34763476 @ENABLE_DOC_TRUE@ rsync -Hvax internals/./ anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/internals/./
3477 @ENABLE_DOC_TRUE@ rsync -Hvax --exclude docs --exclude internals --exclude releases \
3478 @ENABLE_DOC_TRUE@ html/* anarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/realmd/
34773479
34783480 @ENABLE_DOC_TRUE@dist-doc-hook: manual/index.html
34793481 @ENABLE_DOC_TRUE@ @mkdir $(distdir)/manual
0 0.16.2
1 * Be more liberal with domain name chars
2 * Increase timeout when calling PackageKit
3 * List package names with spaces between them [#89464]
4 * Install to $prefix/lib instead of $libdir
5
06 0.16.1
17 * libsystemd build fix [#90519]
28 * Change default home directory to /home/%U@%D
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for realmd 0.16.1.
2 # Generated by GNU Autoconf 2.69 for realmd 0.16.2.
33 #
44 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=realmd>.
55 #
580580 # Identity of this package.
581581 PACKAGE_NAME='realmd'
582582 PACKAGE_TARNAME='realmd'
583 PACKAGE_VERSION='0.16.1'
584 PACKAGE_STRING='realmd 0.16.1'
583 PACKAGE_VERSION='0.16.2'
584 PACKAGE_STRING='realmd 0.16.2'
585585 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=realmd'
586586 PACKAGE_URL=''
587587
13721372 # Omit some internal or obsolete options to make the list less imposing.
13731373 # This message is too long to be a string in the A/UX 3.1 sh.
13741374 cat <<_ACEOF
1375 \`configure' configures realmd 0.16.1 to adapt to many kinds of systems.
1375 \`configure' configures realmd 0.16.2 to adapt to many kinds of systems.
13761376
13771377 Usage: $0 [OPTION]... [VAR=VALUE]...
13781378
14381438
14391439 if test -n "$ac_init_help"; then
14401440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of realmd 0.16.1:";;
1441 short | recursive ) echo "Configuration of realmd 0.16.2:";;
14421442 esac
14431443 cat <<\_ACEOF
14441444
15651565 test -n "$ac_init_help" && exit $ac_status
15661566 if $ac_init_version; then
15671567 cat <<\_ACEOF
1568 realmd configure 0.16.1
1568 realmd configure 0.16.2
15691569 generated by GNU Autoconf 2.69
15701570
15711571 Copyright (C) 2012 Free Software Foundation, Inc.
19341934 This file contains any messages produced by compilers while
19351935 running configure, to aid debugging if configure makes a mistake.
19361936
1937 It was created by realmd $as_me 0.16.1, which was
1937 It was created by realmd $as_me 0.16.2, which was
19381938 generated by GNU Autoconf 2.69. Invocation command line was
19391939
19401940 $ $0 $@
28102810
28112811 # Define the identity of the package.
28122812 PACKAGE='realmd'
2813 VERSION='0.16.1'
2813 VERSION='0.16.2'
28142814
28152815
28162816 cat >>confdefs.h <<_ACEOF
84878487 # ------------------------------------------------------------------------------
84888488 # Results
84898489
8490 privatedir='${libdir}/realmd'
8490 privatedir='${prefix}/lib/realmd'
84918491
84928492
84938493 cachedir='${localstatedir}/cache/realmd'
90579057 # report actual input values of CONFIG_FILES etc. instead of their
90589058 # values after options handling.
90599059 ac_log="
9060 This file was extended by realmd $as_me 0.16.1, which was
9060 This file was extended by realmd $as_me 0.16.2, which was
90619061 generated by GNU Autoconf 2.69. Invocation command line was
90629062
90639063 CONFIG_FILES = $CONFIG_FILES
91239123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
91249124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
91259125 ac_cs_version="\\
9126 realmd config.status 0.16.1
9126 realmd config.status 0.16.2
91279127 configured by $0, generated by GNU Autoconf 2.69,
91289128 with options \\"\$ac_cs_config\\"
91299129
00 AC_PREREQ(2.63)
11
2 AC_INIT([realmd], [0.16.1],
2 AC_INIT([realmd], [0.16.2],
33 [http://bugs.freedesktop.org/enter_bug.cgi?product=realmd],
44 [realmd])
55
370370 # ------------------------------------------------------------------------------
371371 # Results
372372
373 privatedir='${libdir}/realmd'
373 privatedir='${prefix}/lib/realmd'
374374 AC_SUBST(privatedir)
375375
376376 cachedir='${localstatedir}/cache/realmd'
0 0.16.1
0 0.16.2
0
1 website:
2 SRCDIR=$(srcdir) BUILDDIR=$(builddir) python $(srcdir)/doc/website/jinja2-build.py
3
4 CLEANFILES += html/*
3535 <td valign="top" align="right"></td>
3636 </tr></table></div>
3737 <div class="refsect1">
38 <a name="idm47297892231984"></a><h2>Properties</h2>
38 <a name="idm139813439150944"></a><h2>Properties</h2>
3939 <pre class="synopsis">
4040 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Kerberos.RealmName">RealmName</GTKDOCLINK> readable s
4141 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Kerberos.DomainName">DomainName</GTKDOCLINK> readable s
4545 </pre>
4646 </div>
4747 <div class="refsect1">
48 <a name="idm47297889943312"></a><h2>Properties</h2>
48 <a name="idm139813440320336"></a><h2>Properties</h2>
4949 <pre class="synopsis">
5050 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-KerberosMembership.SuggestedAdministrator">SuggestedAdministrator</GTKDOCLINK> readable s
5151 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-KerberosMembership.SupportedJoinCredentials">SupportedJoinCredentials</GTKDOCLINK> readable a(ss)
4545 </pre>
4646 </div>
4747 <div class="refsect1">
48 <a name="idm47297895308560"></a><h2>Properties</h2>
48 <a name="idm139813445279152"></a><h2>Properties</h2>
4949 <pre class="synopsis">
5050 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Provider.Name">Name</GTKDOCLINK> readable s
5151 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Provider.Version">Version</GTKDOCLINK> readable s
4646 </pre>
4747 </div>
4848 <div class="refsect1">
49 <a name="idm47297891890320"></a><h2>Properties</h2>
49 <a name="idm139813439218848"></a><h2>Properties</h2>
5050 <pre class="synopsis">
5151 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Realm.Name">Name</GTKDOCLINK> readable s
5252 <GTKDOCLINK HREF="gdbus-property-org-freedesktop-realmd-Realm.Configured">Configured</GTKDOCLINK> readable s
4444 </pre>
4545 </div>
4646 <div class="refsect1">
47 <a name="idm47297890480336"></a><h2>Signals</h2>
47 <a name="idm139813440124880"></a><h2>Signals</h2>
4848 <pre class="synopsis">
4949 <GTKDOCLINK HREF="gdbus-signal-org-freedesktop-realmd-Service.Diagnostics">Diagnostics</GTKDOCLINK> (s data,
5050 s operation);
3131 By default SSSD is used.</p>
3232 <div class="section">
3333 <div class="titlepage"><div><div><h3 class="title">
34 <a name="idm47297896462208"></a>Using SSSD with Active Directory</h3></div></div></div>
34 <a name="idm139813439423648"></a>Using SSSD with Active Directory</h3></div></div></div>
3535 <p><a class="ulink" href="https://fedorahosted.org/sssd/" target="_top">SSSD</a>
3636 provides client software for various kerberos and/or LDAP
3737 directories. Since version 1.9.x it provides good support
4949 </div>
5050 <div class="section">
5151 <div class="titlepage"><div><div><h3 class="title">
52 <a name="idm47297889828816"></a>Using Winbind with Active Directory</h3></div></div></div>
52 <a name="idm139813443480672"></a>Using Winbind with Active Directory</h3></div></div></div>
5353 <p>Samba
5454 <a class="ulink" href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html" target="_top">Winbind</a>
5555 provides client software for use with Active Directory.</p>
2424 <dt><span class="section"><a href="guide-active-directory.html#guide-active-directory-discover">Discovering Active Directory domains</a></span></dt>
2525 <dt><span class="section"><a href="guide-active-directory-client.html">Active Directory client software</a></span></dt>
2626 <dd><dl>
27 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297896462208">Using SSSD with Active Directory</a></span></dt>
28 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297889828816">Using Winbind with Active Directory</a></span></dt>
27 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813439423648">Using SSSD with Active Directory</a></span></dt>
28 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813443480672">Using Winbind with Active Directory</a></span></dt>
2929 </dl></dd>
3030 <dt><span class="section"><a href="guide-active-directory-join.html">Joining an Active Directory domain</a></span></dt>
3131 <dt><span class="section"><a href="guide-active-directory-permit.html">Logins using Domain Accounts</a></span></dt>
2121 <div class="titlepage"><div><div><h2 class="title">
2222 <a name="guide-ipa"></a>Using with IPA</h2></div></div></div>
2323 <div class="toc"><dl class="toc">
24 <dt><span class="section"><a href="guide-ipa.html#idm47297889722256">Discovering IPA domains</a></span></dt>
24 <dt><span class="section"><a href="guide-ipa.html#idm139813442275680">Discovering IPA domains</a></span></dt>
2525 <dt><span class="section"><a href="guide-ipa-client.html">IPA client software</a></span></dt>
2626 <dt><span class="section"><a href="guide-ipa-join.html">Joining a IPA domain</a></span></dt>
2727 <dt><span class="section"><a href="guide-ipa-permit.html">Logins using Domain Accounts</a></span></dt>
3232 credentials.</p>
3333 <div class="section">
3434 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
35 <a name="idm47297889722256"></a>Discovering IPA domains</h2></div></div></div>
35 <a name="idm139813442275680"></a>Discovering IPA domains</h2></div></div></div>
3636 <p><span class="command"><strong>realmd</strong></span> discovers which domains or
3737 realms it can use or configure. It can discover and identify
3838 IPA domains by looking up the appropriate DNS SRV
2020 <div class="chapter">
2121 <div class="titlepage"><div><div><h2 class="title">
2222 <a name="guide-kerberos"></a>Using with other Kerberos realms</h2></div></div></div>
23 <div class="toc"><dl class="toc"><dt><span class="section"><a href="guide-kerberos.html#idm47297892183456">Discovering Kerberos realms</a></span></dt></dl></div>
23 <div class="toc"><dl class="toc"><dt><span class="section"><a href="guide-kerberos.html#idm139813442855920">Discovering Kerberos realms</a></span></dt></dl></div>
2424 <p><span class="command"><strong>realmd</strong></span> can discover generic Kerberos realms.
2525 Since there is no standard way to enroll a computer against a Kerberos
2626 server, it is not possible to do this with <span class="command"><strong>realmd</strong></span>.</p>
2727 <div class="section">
2828 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
29 <a name="idm47297892183456"></a>Discovering Kerberos realms</h2></div></div></div>
29 <a name="idm139813442855920"></a>Discovering Kerberos realms</h2></div></div></div>
3030 <p><span class="command"><strong>realmd</strong></span> discovers which domains or
3131 realms it can use or configure. It can discover and identify
3232 Kerberos domains by looking up the appropriate DNS SRV
3737 <dt><span class="section"><a href="guide-active-directory.html#guide-active-directory-discover">Discovering Active Directory domains</a></span></dt>
3838 <dt><span class="section"><a href="guide-active-directory-client.html">Active Directory client software</a></span></dt>
3939 <dd><dl>
40 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297896462208">Using SSSD with Active Directory</a></span></dt>
41 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297889828816">Using Winbind with Active Directory</a></span></dt>
40 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813439423648">Using SSSD with Active Directory</a></span></dt>
41 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813443480672">Using Winbind with Active Directory</a></span></dt>
4242 </dl></dd>
4343 <dt><span class="section"><a href="guide-active-directory-join.html">Joining an Active Directory domain</a></span></dt>
4444 <dt><span class="section"><a href="guide-active-directory-permit.html">Logins using Domain Accounts</a></span></dt>
4545 </dl></dd>
4646 <dt><span class="chapter"><a href="guide-ipa.html">Using with IPA</a></span></dt>
4747 <dd><dl>
48 <dt><span class="section"><a href="guide-ipa.html#idm47297889722256">Discovering IPA domains</a></span></dt>
48 <dt><span class="section"><a href="guide-ipa.html#idm139813442275680">Discovering IPA domains</a></span></dt>
4949 <dt><span class="section"><a href="guide-ipa-client.html">IPA client software</a></span></dt>
5050 <dt><span class="section"><a href="guide-ipa-join.html">Joining a IPA domain</a></span></dt>
5151 <dt><span class="section"><a href="guide-ipa-permit.html">Logins using Domain Accounts</a></span></dt>
5252 </dl></dd>
5353 <dt><span class="chapter"><a href="guide-kerberos.html">Using with other Kerberos realms</a></span></dt>
54 <dd><dl><dt><span class="section"><a href="guide-kerberos.html#idm47297892183456">Discovering Kerberos realms</a></span></dt></dl></dd>
54 <dd><dl><dt><span class="section"><a href="guide-kerberos.html#idm139813442855920">Discovering Kerberos realms</a></span></dt></dl></dd>
5555 <dt><span class="chapter"><a href="guide-integration.html">Integration</a></span></dt>
5656 </dl>
5757 </div>
1212 <div class="titlepage">
1313 <div>
1414 <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">realmd</p></th></tr></table></div>
15 <div><p class="releaseinfo">for 0.16.1
15 <div><p class="releaseinfo">for 0.16.2
1616 </p></div>
1717 </div>
1818 <hr>
3434 <dt><span class="section"><a href="guide-active-directory.html#guide-active-directory-discover">Discovering Active Directory domains</a></span></dt>
3535 <dt><span class="section"><a href="guide-active-directory-client.html">Active Directory client software</a></span></dt>
3636 <dd><dl>
37 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297896462208">Using SSSD with Active Directory</a></span></dt>
38 <dt><span class="section"><a href="guide-active-directory-client.html#idm47297889828816">Using Winbind with Active Directory</a></span></dt>
37 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813439423648">Using SSSD with Active Directory</a></span></dt>
38 <dt><span class="section"><a href="guide-active-directory-client.html#idm139813443480672">Using Winbind with Active Directory</a></span></dt>
3939 </dl></dd>
4040 <dt><span class="section"><a href="guide-active-directory-join.html">Joining an Active Directory domain</a></span></dt>
4141 <dt><span class="section"><a href="guide-active-directory-permit.html">Logins using Domain Accounts</a></span></dt>
4242 </dl></dd>
4343 <dt><span class="chapter"><a href="guide-ipa.html">Using with IPA</a></span></dt>
4444 <dd><dl>
45 <dt><span class="section"><a href="guide-ipa.html#idm47297889722256">Discovering IPA domains</a></span></dt>
45 <dt><span class="section"><a href="guide-ipa.html#idm139813442275680">Discovering IPA domains</a></span></dt>
4646 <dt><span class="section"><a href="guide-ipa-client.html">IPA client software</a></span></dt>
4747 <dt><span class="section"><a href="guide-ipa-join.html">Joining a IPA domain</a></span></dt>
4848 <dt><span class="section"><a href="guide-ipa-permit.html">Logins using Domain Accounts</a></span></dt>
4949 </dl></dd>
5050 <dt><span class="chapter"><a href="guide-kerberos.html">Using with other Kerberos realms</a></span></dt>
51 <dd><dl><dt><span class="section"><a href="guide-kerberos.html#idm47297892183456">Discovering Kerberos realms</a></span></dt></dl></dd>
51 <dd><dl><dt><span class="section"><a href="guide-kerberos.html#idm139813442855920">Discovering Kerberos realms</a></span></dt></dl></dd>
5252 <dt><span class="chapter"><a href="guide-integration.html">Integration</a></span></dt>
5353 </dl></dd>
5454 <dt><span class="part"><a href="development.html">II. Developer Reference</a></span></dt>
3636 <div class="cmdsynopsis"><p><code class="command">realm deny</code> -a [-R realm]</p></div>
3737 </div>
3838 <div class="refsect1">
39 <a name="idm47297891142432"></a><h2>Description</h2>
39 <a name="idm139813441667168"></a><h2>Description</h2>
4040 <p><span class="command"><strong>realm</strong></span> is a command line tool that
4141 can be used to manage enrollment in kerberos realms, like Active
4242 Directory domains or IPA domains.</p>
7070 </table></div>
7171 </div>
7272 <div class="refsect1">
73 <a name="idm47297891134592"></a><h2>Discover</h2>
73 <a name="idm139813441659328"></a><h2>Discover</h2>
7474 <p>Discover a realm and its capabilities.</p>
7575 <div class="informalexample">
7676 <pre class="programlisting">
121121 </table></div>
122122 </div>
123123 <div class="refsect1">
124 <a name="idm47297891120416"></a><h2>Join</h2>
124 <a name="idm139813441644912"></a><h2>Join</h2>
125125 <p>Configure the local machine for use with a realm.</p>
126126 <div class="informalexample">
127127 <pre class="programlisting">
228228 </table></div>
229229 </div>
230230 <div class="refsect1">
231 <a name="idm47297888766064"></a><h2>Leave</h2>
231 <a name="idm139813441612112"></a><h2>Leave</h2>
232232 <p>Deconfigure the local machine for use with a realm.</p>
233233 <div class="informalexample">
234234 <pre class="programlisting">
277277 </table></div>
278278 </div>
279279 <div class="refsect1">
280 <a name="idm47297888753968"></a><h2>List</h2>
280 <a name="idm139813441598448"></a><h2>List</h2>
281281 <p>List all the discovered and configured realms.</p>
282282 <div class="informalexample"><pre class="programlisting">
283283 $ realm list
307307 </table></div>
308308 </div>
309309 <div class="refsect1">
310 <a name="idm47297888747088"></a><h2>Permit</h2>
310 <a name="idm139813441590720"></a><h2>Permit</h2>
311311 <p>Permit local login by users of the realm.</p>
312312 <div class="informalexample"><pre class="programlisting">
313313 $ realm permit --all
351351 </table></div>
352352 </div>
353353 <div class="refsect1">
354 <a name="idm47297888736880"></a><h2>Deny</h2>
354 <a name="idm139813441579312"></a><h2>Deny</h2>
355355 <p>Deny local login by realm accounts.</p>
356356 <div class="informalexample"><pre class="programlisting">
357357 $ realm deny --all
2727 <td valign="top" align="right"></td>
2828 </tr></table></div>
2929 <div class="refsect1">
30 <a name="idm47297889063200"></a><h2>Configuration File</h2>
30 <a name="idm139813439138896"></a><h2>Configuration File</h2>
3131 <p><span class="command"><strong>realmd</strong></span> can be tweaked by network administrators
3232 to act in specific ways. This is done by placing settings in a
3333 <code class="filename">/etc/realmd.conf</code>. This file does not exist by
230230 </table></div>
231231 </div>
232232 <div class="refsect1">
233 <a name="idm47297893509472"></a><h2>Realm specific settings</h2>
233 <a name="idm139813438651264"></a><h2>Realm specific settings</h2>
234234 <p>These options should go in an section with the same name
235235 as the realm in the <code class="filename">/etc/realmd.conf</code> file.
236236 For example for the <code class="option">domain.example.com</code> domain
1616 #include "realm-dbus-constants.h"
1717 #include "realm-disco-mscldap.h"
1818 #include "realm-ldap.h"
19 #include "realm-options.h"
1920
2021 #include <glib/gi18n.h>
2122
3839 #ifndef HOST_NAME_MAX
3940 #define HOST_NAME_MAX 255
4041 #endif
41
42 #define DOMAIN_NAME_VALID "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."
4342
4443 static void
4544 closure_free (gpointer data)
9998 guchar **at)
10099 {
101100 gchar buffer[HOST_NAME_MAX];
102 gsize len;
103101 int n;
104102
105103 n = dn_expand (beg, end, *at, buffer, sizeof (buffer));
106104 if (n < 0)
107105 return NULL;
108106
109 len = strlen (buffer);
110 if (strspn (buffer, DOMAIN_NAME_VALID) != len) {
107 if (!realm_options_check_domain_name (buffer)) {
111108 g_message ("received invalid NetLogon string characters");
112109 return NULL;
113110 }
114111
115112 (*at) += n;
116 return g_strndup (buffer, len);
113 return g_strdup (buffer);
117114 }
118115
119116 static gboolean
1818 #include "realm-disco-mscldap.h"
1919 #include "realm-disco-rootdse.h"
2020 #include "realm-ldap.h"
21 #include "realm-options.h"
2122
2223 #include <glib/gi18n.h>
2324
2425 #include <resolv.h>
25
26 #define DOMAIN_NAME_VALID "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."
2726
2827 typedef struct _Closure Closure;
2928
9190 entry_get_attribute (LDAP *ldap,
9291 LDAPMessage *entry,
9392 const gchar *field,
94 const gchar *valid)
93 gboolean domain_name)
9594 {
9695 struct berval **bvs = NULL;
9796 gchar *value = NULL;
101100
102101 if (bvs && bvs[0]) {
103102 value = g_strndup (bvs[0]->bv_val, bvs[0]->bv_len);
104 if (valid) {
105 if (strspn (value, valid) != bvs[0]->bv_len) {
103 if (domain_name) {
104 if (!realm_options_check_domain_name (value)) {
106105 g_free (value);
107106 g_message ("Invalid value in LDAP %s field", field);
108107 value = NULL;
154153 entry = ldap_first_entry (ldap, message);
155154
156155 g_free (clo->disco->kerberos_realm);
157 clo->disco->kerberos_realm = entry_get_attribute (ldap, entry, "cn", DOMAIN_NAME_VALID);
156 clo->disco->kerberos_realm = entry_get_attribute (ldap, entry, "cn", TRUE);
158157
159158 g_debug ("Found realm: %s", clo->disco->kerberos_realm);
160159
210209
211210 /* What is the domain name? */
212211 g_free (clo->disco->domain_name);
213 clo->disco->domain_name = entry_get_attribute (ldap, entry, "associatedDomain", DOMAIN_NAME_VALID);
212 clo->disco->domain_name = entry_get_attribute (ldap, entry, "associatedDomain", TRUE);
214213
215214 g_debug ("Got associatedDomain: %s", clo->disco->domain_name);
216215
309308 entry = ldap_first_entry (ldap, message);
310309
311310 /* Parse out the default naming context */
312 clo->default_naming_context = entry_get_attribute (ldap, entry, "defaultNamingContext", NULL);
311 clo->default_naming_context = entry_get_attribute (ldap, entry, "defaultNamingContext", FALSE);
313312
314313 g_debug ("Got defaultNamingContext: %s", clo->default_naming_context);
315314
1616 #include "realm-dbus-constants.h"
1717 #include "realm-options.h"
1818 #include "realm-settings.h"
19
20 #include <string.h>
1921
2022 gboolean
2123 realm_options_automatic_install (void)
127129
128130 return qualify;
129131 }
132
133 gboolean
134 realm_options_check_domain_name (const gchar *name)
135 {
136 /*
137 * DNS Domain names are pretty liberal (internet domain names
138 * are more restrictive) See RFC 2181 section 11
139 *
140 * http://www.ietf.org/rfc/rfc2181.txt
141 *
142 * However we cannot consume names with whitespace and problematic
143 * punctuation, due to the various programs that parse the
144 * configuration files we set up.
145 */
146
147 gsize i, len;
148 static const gchar *invalid = "=[]:";
149
150 g_return_val_if_fail (name != NULL, FALSE);
151
152 for (i = 0, len = strlen (name); i < len; i++) {
153 if (name[i] <= ' ')
154 return FALSE;
155 if (strchr (invalid, name[i]))
156 return FALSE;
157 }
158
159 return TRUE;
160 }
3838
3939 gboolean realm_options_qualify_names (const gchar *realm_name);
4040
41 gboolean realm_options_check_domain_name (const gchar *domain_name);
42
4143 G_END_DECLS
4244
4345 #endif /* __REALM_OPTIONS_H__ */
2323
2424 #include <glib/gi18n.h>
2525
26 #define CALL_TIMEOUT (24 * 60 * 60 * 1000)
27
2628 static gboolean
2729 packages_check_paths (const gchar **paths,
2830 GDBusMethodInvocation *invocation)
5355 for (i = 0; package_ids != NULL && package_ids[i] != NULL; i++) {
5456 parts = g_strsplit (package_ids[i], ";", 2);
5557 if (string->len)
56 g_string_append (string, ", ");
58 g_string_append (string, " ");
5759 g_string_append (string, parts[0]);
5860 g_strfreev (parts);
5961 }
225227 transaction->parameters,
226228 G_VARIANT_TYPE ("()"),
227229 G_DBUS_CALL_FLAGS_NO_AUTO_START,
228 -1, g_task_get_cancellable (task),
230 CALL_TIMEOUT, g_task_get_cancellable (task),
229231 on_method_done, g_object_ref (task));
230232 }
231233
275277 g_variant_new ("(^as)", hints),
276278 G_VARIANT_TYPE ("()"),
277279 G_DBUS_CALL_FLAGS_NO_AUTO_START,
278 -1, g_task_get_cancellable (task),
280 CALL_TIMEOUT, g_task_get_cancellable (task),
279281 on_set_hints, g_object_ref (task));
280282 }
281283
309311 g_variant_new ("()"),
310312 G_VARIANT_TYPE ("(o)"),
311313 G_DBUS_CALL_FLAGS_NONE,
312 -1, cancellable,
314 CALL_TIMEOUT, cancellable,
313315 on_create_transaction, g_object_ref (task));
314316 }
315317
236236 return 1;
237237 }
238238
239 g_printerr ("id mapping %d %d\n", args->automatic_id_mapping_set, args->automatic_id_mapping);
240239 options = realm_build_options (REALM_DBUS_OPTION_COMPUTER_OU, args->computer_ou,
241240 REALM_DBUS_OPTION_MEMBERSHIP_SOFTWARE, args->membership_software,
242241 REALM_DBUS_OPTION_USER_PRINCIPAL, args->user_principal,