On Thu, 2006-02-02 at 13:46 +0100, Tomasz Chmielewski wrote:
> 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.

Just for some additional reference, I use Net::LDAP in perl to do the
read, with the requirement that the machine be pre-added (with name,
description, serial number, asset tag and most importantly MAC address)
to LDAP.

The config.pl I use is attached.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net

Attachment: config.pl
Description: Perl program

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to