Deletion of list of user based on a text file In LDAP UNIX server
Dear All,
It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address).
Is the any script to write and take the file as input and delete the user from our LDAP data base( LDAP data base is based on Linux Server).
I used to search user through:
We can delete ldapdele or ldapmodify for deletion, it script is based on this command it would be nice.
Please reply me soon, waiting for your valuable reply.
Hi,
In a shell script I am makin use of 3 files f1,f2 and f3.txt.
When the Unix server is restarted I want to delete all these 3
files if they are existing.
( I suppose I will have to use this command
rm /thefilepath/f*
but dont know in which script to use.)
Anyone knows what can be... (6 Replies)
Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.
So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.
So my script should be like... (1 Reply)
Hi Everyone,
Please help me with this. I have gone through many posts here but couldn't find what I wanted.
I have a file with 79000+ lines and I want to delete lines in a pattern.
I want to delete every 141st line in the file, starting from line 2000 till 50000.
Please help guys.
... (8 Replies)
Hi all
I currently use the following in shell.
#!/bin/sh
while read LINE
do
perl -i -ne "$/ = ''; print if !m'Using archive: ${LINE}'ms;" "datafile"
done < "listfile"
NOTE the single quote delimiters in the expression. It's highly likely the 'LINE' may very well have characters in it... (3 Replies)
Good morning,
Firstly my appologies if this post is not exactly approprate for this forum but I do not know were else to post it. If anyone knows of a better forum for this please let me know.
I need to script an ldapsearch that will interrogate both unix and windows ldap servers. When it... (1 Reply)
Hi All,
I am fairly new to the world of Unix, and I am looking for a way to replace a line of text in a file with a delimited array of values.
I have an aliases file that is currently in use on our mail server that we are migrating off of. Until the migration is complete, the server must stay... (8 Replies)
Folks,
I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3)
List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
I have a text file with a list of items/patterns:
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig12238
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig34624... (1 Reply)
Hi everyone,
I am not that familiar with LDAP advanced contents. But since it is a popular secure tool for authentication, I preferred to user RedHat LDAP. The organization has 5 organizational units. There are 3 client servers and I want to limit each client to access different users.
So, I... (3 Replies)
Discussion started by: royalliege
3 Replies
LEARN ABOUT DEBIAN
eurephiadm-certs
eurephiadm certs(7) eurephiadm certs(7)NAME
eurephiadm-certs - Certificate management for eurephia
DESCRIPTION
Available modes for the certificate command are:
-A | --add
Register a new certificate
-D | --delete
Delete a registered certificate
-l | --list
List all registered certificates
-h | --help <mode>
Help about a specific mode
LIST MODE
The list mode will list all registered certificates. It accepts one parameter:
-S | --sort <sort key>
Decide the sort order of the certificate list
Available sort keys are:
certid
Numeric certificate ID
depth
Certificate depth
digest
Certificate SHA1 digest
cname
Certificate Common Name field
org
Certificate organisation field
email
Certificate e-mail address field
registered
When the certificate was registered in eurephia.
ADD MODE
The add mode will register a new certificate.
-d | --depth
Certificate depth, required.
-D | --digest
SHA1 fingerprint/digest of the new certificate
-C | --common-name
Common name (CN) field of the certificate
-O | --organisation
Organisation (O) field of the certificate
-E | --email
e-mail address (emailAddress) of the certificate
Usually the certificate depth value needs to be 0, if you are registering user account certificates. CA certificates usually have a value
bigger than 0.
If you have the certificate file available, you can use the following options to retrieve the needed information directly from a certifi-
cate file.
-f | --certfile
File name of the certificate file.
-p | --pkcs12
If the file is in PKCS#12 format.
The default format is PEM format, unless --pkcs12 is given. These two options cannot be used together with -D, -C, -O or -E. But the cer-
tificate depth must be given to indicate the certificate depth.
DELETE MODE
The delete mode will remove a certificate from the certificate database.
-i | --certid
Indicates a unique certificate ID
-d | --digest
A unique SHA1 fingerprint/digest value
-C | --common-name
Common Name (CN) field of a certificate
-O | --organisation
Organisation (O) field of a certificate
-E | --email
e-mail address (emailAddress) of a certificate
You can use any of these parameters to indicate a search criteria for the certificate (or certificates) you want to delete. You will be
provided with a list over certificates which matches your search criteria and you will need to approve the deletion of the matching cer-
tificate(s).
SEE ALSO eurephiadm-users(7), eurephiadm-usercerts(7)AUTHOR
Copyright (C) 2008-2010 David Sommerseth <dazo@users.sourceforge.net>
David Sommerseth July 2010 eurephiadm certs(7)