I am working on what I hope will be a drakwizard to configure OpenLDAP and
import user accounts etc, but:
1)my perl ain't so good
2)there doesn't seem to be much doco on drakwizard

So I have a quick question (and probably more to follow):
I have a script:

[bgmilne@bgmilne ldap_wizard]$ cat ./scripts/get_domain.sh
#!/bin/bash

. /etc/sysconfig/network

DN=`echo $DOMAINNAME|sed -e 's/\./,dc=/g'`
echo "dc=$DN"

exit 0
[bgmilne@bgmilne ldap_wizard]$

which when I run it gives me this:
[bgmilne@bgmilne ldap_wizard]$  ./scripts/get_domain.sh
dc=mydomain,dc=com

(I will probably use 'hostname -d' in future, but this is just for
debugging), and have listed it as a fillscript:
                <Info
                        comment="current domain name"

fillScript="/usr/share/wizards/ldap_wizard/scripts/get_domain.sh"
                >
                </Info>

and:
                <Freetext
                        name="f_wiz_ldap_basedn"
                        variableName="wiz_ldap_basedn"
                        helpText="Base DN: "
                        editable="true"

fillScript="/usr/share/wizards/ldap_wizard/scripts/get_domain.sh"
                >
                </Freetext>


The info one works, but the Freetext one does not ...

Also, can a Freetext have a default entry besides using a fillscript?

Is there more doco on drakwizard somewhere?

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7


Reply via email to