Assuming I have "username", and "REALM", can anyone think of a good way to turn this:
Into this:
You'll notice that the hex value following the ;ApplePasswordServer; and ;Kerberosv5; are the same, as are the sections beginning with 1024 and ending with root@ldap.example.com:123.456.789.111. So basically, need so swap out ApplePasswordServer with Kerberosv5, and add the username and REALM info.
I can think of a few ways to do this with php, but I'm not particularly good with regex, and it would be nice to do this all in (ba)sh.
I am trying to write a script that kills old sessions, I've posted here over the past few days and the script is just about perfect except I want to be given the option to exclude specified PIDs from being killed. this is the entire script:
if
then
rm /tmp/idlepids
fi
if
then
rm... (2 Replies)
Hello,
I got files full path in a text file like that
/main/k/kdelibs/kdelibs4c2a_3.5.10.dfsg.1-2ubuntu7_i386.deb
/main/k/kdelibs-experimental/libknotificationitem-dev_4.3.2-0ubuntu1_i386.deb
/main/k/kdemultimedia/dragonplayer_4.3.2-0ubuntu1_i386.deb... (13 Replies)
Hi guys,
i have a question about spliting a binary file into 2 chunks.
First chunk with all high bytes and the second one with all low bytes.
What unix tools can i use? And how can this be performed?
I looked in manpages of split and dd but this does not help.
Thanks (2 Replies)
Hi, I need a script that parses and greps data out of a textfile.
I have a text file that has this structure:
File1
host1.localdomain
text random text
Found errors
this text is random (41123) --- random random
at.5165 ---- random random
at.5165 ---- random random
at.5165 ----... (2 Replies)
First time poster, but the forum has saved my bacon more times than... Lots.
Anyway, I have a text file, and wanted to use Awk (or any other sensible program) to print out overlapping sections, or arbitrary length. To describe by example, for file
1
2
3
4
5
etc...
I want the out put... (3 Replies)
Hi gurus,
I wanted to split main file in 20 files with 2500 lines in each file. My main file conatins total 2500*20 lines. Following awk I made, but it is breaking with error.
awk '{ for (i = 1; i <= 20; i++) { starts=2500*$i-1; ends=2500*$i; NR>=starts && NR<=ends {f=My$i".txt"; print >> f;... (10 Replies)
Hello,
I have a large file in which data of names is sorted according to their homographs. The database has the following structure:Each set of homographs with their corresponding equivalents in Devanagari is separated out from the next set by a hard return. An example will make this... (12 Replies)
Hi
I have a file with different filesystems with there sizes. I need to split them in chucks of 1TB.
The file looks like
vf_MTLHQNASF07_Wkgp2 187428400 10601AW1
vf_MTLHQNASF07_Wkgp2 479504596 10604AW1
vf_MTLHQNASF07_Wkgp2 19940 10605AID
vf_MTLHQNASF07_Wkgp2 1242622044... (4 Replies)
Hi all,
I'd always appreciate all helps from this site.
I would like to delete duplicated chunks of strings on the same row(?).
One chunk is comprised of four lines such as:
path name
starting point
ending point
voltage number
I would like to delete duplicated chunks on the same... (5 Replies)
Hello experts,
I have a text file with lot of curly brackets (both opening { & closing } ). I need to delete them alongwith the text between opening & closing brackets' pair.
For ex: Input:-
59. Rh1 Qe4 {(Qf5-e4 Qd8-g8+ Kg6-f5
Qg8-h7+ Kf5-e5 Qh7-e7+ Ke5-f5 Qe7-d7+ Qe4-e6 Qd7-h7+ Qe6-g6... (6 Replies)
Discussion started by: prvnrk
6 Replies
LEARN ABOUT OSX
kadmin_util
kadmin_util(8) BSD System Manager's Manual kadmin_util(8)NAME
kadmin_util -- Kerberos -- Open Directory Single Sign On
SYNOPSIS
kadmin_util -a principal_name -d principal_name [-r REALM] [-h] [-p] [-v debug_level]
DESCRIPTION
kadmin_util is a tool for managing the access control list used by kadmind to control which users have the ability to modify the Kerberos
database of user information. It will look at the acl_file item in the realm section of the kdc config file to determine which acl files to
update.
-a principal_name
Adds the given principal name to the acl file with administrator privs.
-d principal_name
Removes the given principal name from the acl. (-a & -d are mutually exclusinve)
-h Send a HUP signal to kadmind if the update completes without errors
-p Write the output error to standard out in an XML Plist format
-r REALM
Denotes which realm to update. If this parameter is omitted, kadmin_util will operate on the first realm it finds in the kdc config
file. To operate on all the available realms use '*' for the realm name
-v debug_level
Sets the debug level (1 = progress >1 for more detail)
EXAMPLES
To add adminuser@REALM.COM to the acl file as kerberos administrator for realm REALM.COM
kadmin_util -a adminuser@REALM.COM -r REALM.COM
To remove adminuser@REALM.COM from all the realms serviced by this kdc (you need the quotes around the * to keep the shell from substituting
filenames)
kadmin_util -d adminuser@REALM.COM -r '*'
FILES
/var/db/krb5kdc/kadm5.acl the standard acl file location
/var/db/krb5kdc/kdc.conf the default kdc config file
DIAGNOSTICS
You can add -v debug_level to any kadmin_util command. Debug level 1 provides status information, higher levels add progressivly more levels
of detail.
NOTES
The kadmin_util tool is used by the Apple Single Sign On system to set up a KDC integrated with the rest of the Single Sign On components.
SEE ALSO DirectoryService(1), kerberos(1), kadmind(8), kerberosautoconfig(8), krbservicesetup(8), krb5kdc(8), sso_util(8)Darwin June 2, 2019 Darwin