Browse Source

[master] Merge branch 'trac2641-0'

JINMEI Tatuya 12 years ago
parent
commit
54e8f4061f
2 changed files with 9 additions and 6 deletions
  1. 8 5
      doc/guide/bind10-guide.xml
  2. 1 1
      src/bin/cmdctl/Makefile.am

+ 8 - 5
doc/guide/bind10-guide.xml

@@ -420,6 +420,13 @@ var/
         </listitem>
         </listitem>
 
 
         <listitem>
         <listitem>
+          <para>Create a user for yourself:
+            <screen>$ <userinput>cd /usr/local/etc/bind10/</userinput></screen>
+            <screen>$ <userinput>/usr/local/sbin/b10-cmdctl-usermgr</userinput></screen>
+          </para>
+        </listitem>
+
+        <listitem>
           <para>Start the server (as root):
           <para>Start the server (as root):
             <screen>$ <userinput>/usr/local/sbin/bind10</userinput></screen>
             <screen>$ <userinput>/usr/local/sbin/bind10</userinput></screen>
           </para>
           </para>
@@ -431,7 +438,7 @@ var/
 	    DNS service (by using the <command>bindctl</command> utility
 	    DNS service (by using the <command>bindctl</command> utility
 	    to configure the <command>b10-auth</command> component to
 	    to configure the <command>b10-auth</command> component to
 	    run): <screen>$ <userinput>bindctl</userinput></screen>
 	    run): <screen>$ <userinput>bindctl</userinput></screen>
-	    (Login with the provided default username and password.)
+	    (Login with the username and password you used above to create a user.)
             <screen>
             <screen>
 &gt; <userinput>config add Init/components b10-auth</userinput>
 &gt; <userinput>config add Init/components b10-auth</userinput>
 &gt; <userinput>config set Init/components/b10-auth/special auth</userinput>
 &gt; <userinput>config set Init/components/b10-auth/special auth</userinput>
@@ -1115,10 +1122,6 @@ but that is a single file, maybe this should go back to that format?
       <filename>/usr/local/etc/bind10/cmdctl-accounts.csv</filename>.
       <filename>/usr/local/etc/bind10/cmdctl-accounts.csv</filename>.
       This comma-delimited file lists the accounts with a user name,
       This comma-delimited file lists the accounts with a user name,
       hashed password, and salt.
       hashed password, and salt.
-      (A sample file is at
-      <filename>/usr/local/share/bind10/cmdctl-accounts.csv</filename>.
-      It contains the user named <quote>root</quote> with the password
-      <quote>bind10</quote>.)
     </para>
     </para>
 
 
     <para>
     <para>

+ 1 - 1
src/bin/cmdctl/Makefile.am

@@ -71,7 +71,7 @@ if INSTALL_CONFIGURATIONS
 # because these file will contain sensitive information.
 # because these file will contain sensitive information.
 install-data-local:
 install-data-local:
 	$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
 	$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
-	for f in $(USERSFILES) $(CERTFILES) ; do	\
+	for f in $(CERTFILES) ; do	\
 	  if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then	\
 	  if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then	\
 	    ${INSTALL} -m 640 $(srcdir)/$$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ;	\
 	    ${INSTALL} -m 640 $(srcdir)/$$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ;	\
 	  fi ;	\
 	  fi ;	\