Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145622 - make copy and paste a bit easier on the doc users
Summary: make copy and paste a bit easier on the doc users
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/ldap-how...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 09:57 UTC by Richard Hartmann
Modified: 2006-09-02 08:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to en/ldap-howto.xml (ldap-howto.xml.patch,911 bytes, text/plain)
2006-08-30 10:21 UTC, Richard Hartmann
Details

Note You need to log in before you can comment on or make changes to this bug.
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."