[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Script for mass updates
- To: "Jephte Clain" <jephte.clain@univ-reunion.fr>
- Subject: Re: Script for mass updates
- From: "Ralf Mattes" <rm@mh-freiburg.de>
- Date: Wed, 01 Feb 2017 22:27:12 +0100
- Cc: Nick Milas <nick@eurobjects.com>, Michael Ströder <michael@stroeder.com>, openldap-technical@openldap.org <openldap-technical@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mh-freiburg.de; s=mail; t=1485984432; bh=Hse6XhWvFhEib/a/EUdTeL3oRf5lnZmmNEnM5WwYAS4=; h=in-reply-to:to:from:subject:date:cc:From; b=h1BFxLObBC2E5DbszDiRk8v8pIdhl4oeP+k0Xg7Owl0nW/jpslo2OHYw0aYj7XcDi X2GbS78hLGRSRrsmj4E6g7Do+t1XqDqufqCfZcr9+corx9GHWdP089l3Z5V5Nn+IiU MQ9Th015+3QLJiCu/Ah39wMqpENT3zVcH4hmTE9Y=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mh-freiburg.de; s=mail; t=1485984431; bh=Hse6XhWvFhEib/a/EUdTeL3oRf5lnZmmNEnM5WwYAS4=; h=in-reply-to:to:from:subject:date:cc:From; b=IShKxm9LRXahG6i4avwQ0fpVClNcRROIMz+BtYj3MQVllUMUjs/B4LLZLh2vKFlsh S3ayDUHuIG48BlxEG1Ig7MNOq++zfJ8GkRR/E2y6iG4Vgi5WgKzD2IPc1b8mscP6N/ hsjRQVSjyXcvNpNS+Kxe5xLJLcB6Iyq9NLwyiaMg=
- In-reply-to: <CAPas2jRNDYm-zq7x60Y-bK2kKR=7aoy46nJsy8xTdJjOT0z1JA@mail.gmail.com>
- User-agent: SOGoMail 2.3.17
Am Mittwoch, 01. Februar 2017 19:21 CET, Jephte Clain <jephte.clain@univ-reunion.fr> schrieb:
> hello,
>
> he asked for a quick and dirty way with bash, so that's what I gave him.
Sorry, but the OP did _not_ ask for a "quick and dirty" solution, he asked for an
existing script. "Quick and dirty" is not what you want as a system administrator.
> however, I'm curious: can you give me an example of input my script can't
> handle?
Yes, of course.
- It will fail as soon as the value of the cn attribute doesn't fit in a single
line (happens more often than you might expect).
- It wil fail for entries with more than one cn attribute, generating more
than one displayName attribute per entry.
Cheers, Ralf Mattes