I wrote a script which will allow to perform a fully Unattended installation 
(i.e., without having to specify the workstation name), and which
shares the LDAP database used by Samba.

For example, it could be used if we want our workstations be called pc001, 
pc002, pc003 etc., and to associate the names with MAC addresses.

If the machine is reinstalled, it keeps the old name.
If a new machine is installed (with no MAC in the database), the script will 
lookup the first workstation name available (i.e., if we have pc001,
pc002, pc003, it will pick pc004).

It is a bash script, and because I'm no perl expert, I don't know how can I 
integrate it with Unattended.
I guess I have to play with site/config.pl file, but I don't really know where 
to start.

Of course, I'll gladly contribute it once it works with unattended :)

Can anyone help me integrate it with unattended?

Let's assume that:

- the output of the script is "guessed-name005" (and exit status 0) in case it 
guessed the name correctly,
- it exits with the status 1 if there was an error (couldn't connect to LDAP 
etc.).


-- 
Tomasz Chmielewski
http://wpkg.org




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to