LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2005, 06:48 AM   #1
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
dynamic ldif files


hi,

i have a small problem, well it isnt realy a problem but more of an annoyance. every time my internet connection reconnects i have a difrent IP address and i have to change all the a record entrys in bind. all the entrys in bind are stored under LDAP so i creat an ldif file to modify the entrys in LDAP using the following command

ldapmodify -x -W -D "cn=Administrator,dc=berrancenetworks,dc=co,dc=uk" -f /modify.ldif

a sample of my ldif file is below

dn: zoneName=berrancenetworks.co.uk,ou=DNS,dc=berrancenetworks,dc=co,dc=uk
changetype: modify
replace: aRecord
aRecord: ip address

what i want do do is as the tittle suggests is create a dynamic ldif file if such a thing is possible, so where ever i need to put my ip address in i would put the viarable $my_ip and the viarable is defined at te top of the ldif file so i only have to change that.

thanks for any input

berrance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing LDIF kaon Linux - Software 2 11-16-2005 09:59 AM
openldap ldif file problem iluvatar Linux - Software 3 07-31-2005 06:57 PM
Read files from XP dynamic disk. siht SUSE / openSUSE 5 07-09-2005 08:18 AM
admin.ldif for ldap berrance Linux - Networking 1 03-06-2005 05:32 AM
New to Open LDAP. Trying to import an LDIF file. davealex Linux - Networking 1 10-16-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration