Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145622

Summary: make copy and paste a bit easier on the doc users
Product: [OLD] Docs on www.gentoo.org Reporter: Richard Hartmann <richih>
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/ldap-howto.xml
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to en/ldap-howto.xml

Description Richard Hartmann 2006-08-30 09:57:02 UTC
293,296c293,298
< # <i>ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/base.ldif</i>
< # <i>ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/group.ldif</i>
< # <i>ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/passwd.ldif</i>
< # <i>ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/hosts.ldif</i>
---
> # <i>export LDAP_DOMAIN=genfic</i>
> # <i>export LDAP_TLD=com</i>
> # <i>ldapadd -D "cn=Manager,dc=$LDAP_DOMAIN,dc=$LDAP_TLD" -W -f /tmp/base.ldif</i>
> # <i>ldapadd -D "cn=Manager,dc=$LDAP_DOMAIN,dc=$LDAP_TLD" -W -f /tmp/group.ldif</i>
> # <i>ldapadd -D "cn=Manager,dc=$LDAP_DOMAIN,dc=$LDAP_TLD" -W -f /tmp/passwd.ldif</i>
> # <i>ldapadd -D "cn=Manager,dc=$LDAP_DOMAIN,dc=$LDAP_TLD" -W -f /tmp/hosts.ldif</i>
Comment 1 Richard Hartmann 2006-08-30 10:21:53 UTC
Created attachment 95496 [details]
patch to en/ldap-howto.xml

Rationale for the patch:

It is cumbersome having to copy, paste, edit and then submitting the commands. With two simple exports, the user will be able to copy & paste without a potential error source and more convenience.
Comment 2 nm (RETIRED) gentoo-dev 2006-09-01 03:58:16 UTC
Well, to be honest, your method actually involves significantly more typing! Copying and pasting commands really isn't that hard. You do know all you have to do is hit the up arrow (in bash & most other shells) to get the last command entered, and then just change a few letters to the new file location, right?

The existing way is much simpler, and works perfectly well.

But thanks for the suggestion; Linux is proof that there's more than one way to do it. :)
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2006-09-02 08:58:12 UTC
Just FYI:

"Disclaimer: This document is not valid and is not maintained anymore."