From: Isaac <tom...@so...> - 2002-07-18 16:49:41
|
I am working on a cablemodem registration script that collects information on the user, and stores it in an ldap database. So far everything is working fine, but I'm not sure how I should go about implementing the next stage. As it is the database requires that I store 2 ip addresses and 2 mac addresses for each user (one for the modem, and one for the client). My question is this: How do I distinguish between the modem mac address/ip and the client? Also, at the moment, if the user registers a new device on the network their old entry is overwritten. I would like the user to be able to register multiple devices, and to have the database keep distinct records for each device. Here is how the attributes are laid out in my script: $CreateArray = [ objectClass => ["ipHost","ieee802Device","person","organizationalPerson"], cn => $query->param('login'), sn => $query->param('name'), userPassword => $query->param('pass') , street => $query->param('address'), telephoneNumber => $query->param('phone'), ipHostNumber => $client_IP, macAddress => $client_MAC, ipHostNumber => $modem_IP, macAddress => $query->param('modem_MAC'), ]; Thank you for your time, -Isaac Davis-King |