Kapalı

CLI script for modifying values in a multi-value LDAP attribute

I need a command line tool for Linux that searches an LDAP directory with a specific filter and, for each entry found, modifies two values that are part of a multi-value attribute.

My LDAP directory entries have an attribute, radiusReplyItem, with multiple values. I need to modify all entries matching the filter and replace some of these values having a specific pattern with different ones, the other values must not be changed.

I'm expecting a script that, provided two search values, search_value1 and search_value2, connects to an LDAP server and modifies the matching entries in the LDAP directory with replace_value1 and replace_value2, respectively.

For example, I want the script to replace the values for all entries matching the filter '(&(radiusReplyItem=X-OldPlan-Out+="old-25")(radiusReplyItem=X-OldPlan-In+="old-30"))' with two new values

If I configure the script with these values:

search_value1='X-OldPlan-Out+="old-25"'

search_value2='X-OldPlan-In+="old-30"'

replace_value1='X-NewPlan-Out+="new-25"'

replace_value2='X-NewPlan-In+="new-30"'

The script should modify this dn entry:

before the ldap modification:

"""

dn: uid=john,ou=People,dc=local

objectClass: top

objectClass: inetOrgPerson

objectClass: radiusprofile

[...]

radiusReplyItem: X-Domain="x.y.z"

radiusReplyItem: X-OldPlan-Out+="old-25"

radiusReplyItem: X-Room="991"

radiusReplyItem: X-OldPlan-In+="old-30"

"""

after the ldap modification:

"""

dn: uid=john,ou=People,dc=local

objectClass: top

objectClass: inetOrgPerson

objectClass: radiusprofile

[...]

radiusReplyItem: X-Domain="x.y.z"

radiusReplyItem: X-NewPlan-Out+="new-25"

radiusReplyItem: X-Room="991"

radiusReplyItem: X-NewPlan-In+="new-30"

"""

The script must run on any recent Linux distribution. You can use bash, python, golang or whatever you prefer.

Beceriler: Linux, Kabuk Betiği, Python, Golang, Sistem Yöneticisi

Müşteri Hakkında:
( 3 değerlendirme ) Benavidez, Argentina

Proje NO: #34843039

Bu iş için 12 freelancer ortalamada $197 teklif veriyor

MashoodurRehman1

I am Python Developer and i can build script for Modifying multi-value LDAP attribute on any LINUX Distributions and I am pretty sure that I can complete every bit of your requirements. Further details and cost can be Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(99 Değerlendirme)
6.3
Devrits

Hey! I am an expert Python engineer with skills including Shell Script, Python, Golang, System Admin and Linux. Passionate C++ and Python Engineer with 10+ years of professional experience in full-cycle product develo Daha Fazla

$250 USD in 5 gün içinde
(16 Değerlendirme)
5.8
hsh564cf84accd96

I'm an experienced Linux system administrator with more than 5 years of experience in enterprise environments working mainly with RHEL (5,6 and 7) and SLES (10,11 and 12). I'm working with confidence with the following Daha Fazla

$140 USD in 7 gün içinde
(21 Değerlendirme)
4.9
android2014213

Hi, I am experienced in your project. Can be edit ldap attribute value using cli. Looking forward to work on this project. Thanks Ashish A.

$250 USD in 4 gün içinde
(40 Değerlendirme)
5.5
nolk

Hi there, I have very long experience with LDAP and will be happy to help you with the task. I'd prefer to use python, but it might introduce some dependency on LDAP libraries (python-ldap for example) - if it is an is Daha Fazla

$140 USD in 7 gün içinde
(18 Değerlendirme)
4.7
vorasiddh4it

I have read project requirements. I am managing director of software company and I have team for development so we can complete it perfectly. I am from India GMT +5:30 and I am available from 8:00 AM to 11:00 PM. We Daha Fazla

$500 USD in 7 gün içinde
(6 Değerlendirme)
4.5
IslamAdam998

Dear sir, I am a digital design engineer expert in FPGA and ASIC design flows using Verilog and VHDL programming. Also, I am experienced with Vivado, ISE, Vivado IPs, SDK, Quartus, Design Compiler, IC Compiler, and oth Daha Fazla

$140 USD in 7 gün içinde
(1 Yorum)
2.7
pinesucceed01

Dear Client, I am in top 3% Python Developer as freelancer, I work individual, not team, provide dedicated hours, Experienced with Python frameworks Django. Familiarity with skills Python, Golang, System Admin, Linux Daha Fazla

$155 USD in 7 gün içinde
(1 Yorum)
1.8
dendzadev

Hi, Client. How are you. I prefer Python language. You want a command line tool for Linux that - searches an LDAP directory with a specific filter - modifies two values that are part of a multi-value attribute. I ca Daha Fazla

$100 USD in 7 gün içinde
(1 Yorum)
1.7
rukshanlancer

Hi, Demian W. I checked your post with title "CLI script for modifying values in a multi-value LDAP attribute". I am familiar to Shell Script, System Admin, Golang, Linux and Python. I want to discuss your project in Daha Fazla

$150 USD in 5 gün içinde
(0 Değerlendirme)
2.4
OSCLInfraSol

You requirement can be doable with Shell script if possible share volume of the work as per your description requirement not able to estimate the delivery time.

$200 USD in 7 gün içinde
(0 Değerlendirme)
0.0
naumenkoolexand1

I have a rich experience in Golang and python. Language is not important. I can satisfy you perfectly. Hope chat soon. Best regards.

$200 USD in 3 gün içinde
(0 Değerlendirme)
0.0