Sponsored Content
Full Discussion: # Table Maybe???
Top Forums UNIX for Dummies Questions & Answers # Table Maybe??? Post 302472725 by Scrutinizer on Thursday 18th of November 2010 12:23:51 AM
Old 11-18-2010
Hi, like this, I'd say:
Code:
newuidnr=$( ldapsearch -x -b 'dc=beasty,dc=netlab,dc=albury,dc=tafe' '(objectclass=posixAccount)' uidnumber | awk '/uidNumber/&&$2>t{t=$2}END{print t+1}')

you can leave out the grep and you should not use the double quotes at the beginning and end.
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check the record count in table (table in oracle)

I have requirement: 1) Check the record count in table (table in oracle) 2) If records exists generate the file for existing records and wait for some time (Go to sleep mode) and Again check the record count after 10 min.......... (Loop this process if record count >0). 3) Generate touch... (1 Reply)
Discussion started by: kamineni
1 Replies

2. Shell Programming and Scripting

Check the record count in table (table in oracle)

I have requirement: 1) Check the record count in table (table in oracle) 2) If records exists generate the file for existing records and wait for some time then Go to sleep mode and Again check the record count after 10 min.......... (Loop this process if record count >0). 3) Generate touch... (1 Reply)
Discussion started by: kamineni
1 Replies

3. Shell Programming and Scripting

select values from db1 table and insert into table of DB2

Hi I am having three oracle databases running in three different machine. their ip address is different. from one of the DB am able to access both the databases.(means am able to select values and insert values in to tables individually.) I need to fetch some data from DB1 table(say DB1 ip is... (2 Replies)
Discussion started by: aemunathan
2 Replies

4. UNIX and Linux Applications

create table via stored procedure (passing the table name to it)

hi there, I am trying to create a stored procedure that i can pass the table name to and it will create a table with that name. but for some reason it creates with what i have defined as the variable name . In the case of the example below it creates a table called 'tname' for example ... (6 Replies)
Discussion started by: rethink
6 Replies

5. UNIX for Dummies Questions & Answers

Creating a condensed table from a pre-existing table in putty

Hello, I'm working with putty on Windows 7 professional and I'd like to know if there's a way to gather specific lines from a pre-existing table and make a new table with that information. More specifically, I'd like the program to look at a specific column, say column N, and see if any of the... (5 Replies)
Discussion started by: Deedee393
5 Replies

6. Shell Programming and Scripting

Build a table from a list by comparing existing table entries

I am new to this shell scripting.... I have a file which contains list of users. This files get updated when new user comes into the system. I want to create script which will give a table containing unique list of users. When I say unique, it means script should match table while parsing... (3 Replies)
Discussion started by: dchavan1901
3 Replies

7. UNIX and Linux Applications

Single table or split the table

I have an application that collect data from 10 server every minutes and stored to mysql db,. there are about 10K record from each server on every minutes. that data will need to stored in 1 month. Which ones is better, create single table for all servers and put field to identified data... (3 Replies)
Discussion started by: before4
3 Replies

8. UNIX and Linux Applications

Help in copying table structure to another table with constraints in Oracle

hi, i need to copy one table with data into another table, right now am using create table table1 as select * from table2 i want the constraints of table1 to be copied to table2 also , can anyone give me some solution to copy the constraints also, now am using oracle 10.2.0.3.0... (1 Reply)
Discussion started by: senkerth
1 Replies

9. Shell Programming and Scripting

awk to convert table-by-row to matrix table

Hello, I need some help to reformat this table-by-row to matrix? infile: site1 A:o,p,q,r,s,t site1 C:y,u site1 T:v,w site1 -:x,z site2 A:p,r,t,v,w,z site2 C:u,y site2 G:q,s site2 -:o,x site3 A:o,q,s,t,u,z site3 C:y site3 T:v,w,x site3 -:p,routfile: SITE o p q r s t v u w x y... (7 Replies)
Discussion started by: yifangt
7 Replies

10. Web Development

Getting Rid of Annoying Bootstrap Table Borders and Wayward Table Lines

Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer: <script> $(function(){ $('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies
idmapd.conf(5)							File Formats Manual						    idmapd.conf(5)

NAME
idmapd.conf - configuration file for libnfsidmap SYNOPSIS
Configuration file for libnfsidmap. Used by idmapd and svcgssd to map NFSv4 name to and from ids. DESCRIPTION
The idmapd.conf configuration file consists of several sections, initiated by strings of the form [General] and [Mapping]. Each section may contain lines of the form variable = value The recognized sections and their recognized variables are as follows: [General] section variables Verbosity Verbosity level of debugging (Default: 0) Domain The local NFSv4 domain name. An NFSv4 domain is a namespace with a unique username<->UID and groupname<->GID mapping. (Default: Host's fully-qualified DNS domain name) Local-Realms A comma-separated list of Kerberos realm names that may be considered equivalent to the local realm name. For example, users juser@ORDER.EDU and juser@MAIL.ORDER.EDU may be considered to be the same user in the specified Domain. (Default: the host's default realm name) Note: If a value is specified here, the default local realm must be included as well. [Mapping] section variables Nobody-User Local user name to be used when a mapping cannot be completed. Nobody-Group Local group name to be used when a mapping cannot be completed. [Translation] section variables Method A comma-separated, ordered list of mapping methods (plug-ins) to use when mapping between NFSv4 names and local IDs. Each specified method is tried in order until a mapping is found, or there are no more methods to try. The methods included in the default distri- bution include "nsswitch", "umich_ldap", and "static". (Default: nsswitch) GSS-Methods An optional comma-separated, ordered list of mapping methods (plug-ins) to use when mapping between GSS Authenticated names and local IDs. (Default: the same list as specified for Method) [Static] section variables The "static" translation method uses a static list of GSS-Authenticated names to local user names. Entries in the list are of the form: principal@REALM = localusername [UMICH_SCHEMA] section variables If the "umich_ldap" translation method is specified, the following variables within the [UMICH_SCHEMA] section are used. LDAP_server LDAP server name or address (Required if using UMICH_LDAP) LDAP_base Absolute LDAP search base. (Required if using UMICH_LDAP) LDAP_people_base Absolute LDAP search base for people accounts. (Default: The LDAP_base value) LDAP_group_base Absolute LDAP search base for group accounts. (Default: The LDAP_base value) LDAP_canonicalize_name Whether or not to perform name canonicalization on the name given as LDAP_server (Default: "true") LDAP_use_ssl Set to "true" to enable SSL communication with the LDAP server. (Default: "false") LDAP_ca_cert Location of a trusted CA certificate used when SSL is enabled (Required if LDAP_use_ssl is true) NFSv4_person_objectclass The object class name for people accounts in your local LDAP schema (Default: NFSv4RemotePerson) NFSv4_name_attr Your local schema's attribute name to be used for NFSv4 user names (Default: NFSv4Name) NFSv4_uid_attr Your local schema's attribute name to be used for uidNumber (Default: uidNumber) GSS_principal_attr Your local schema's attribute name for GSSAPI Principal names (Default: GSSAuthName) NFSv4_acctname_attr Your local schema's attribute name to be used for account names (Default: uid) NFSv4_group_objectclass The object class name for group accounts in your local LDAP schema (Default: NFSv4RemoteGroup) NFSv4_gid_attr Your local schema's attribute name to be used for gidNumber (Default: gidNumber) NFSv4_group_attr Your local schema's attribute name to be used for NFSv4 group names (Default: NFSv4Name) LDAP_use_memberof_for_groups Some LDAP servers do a better job with indexing where searching through all the groups searching for the user in the memberuid list. Others like SunOne directory that search can takes minutes if there are thousands of groups. So setting LDAP_use_memberof_for_groups to true in the configuration file will use the memberof lists of the account and search through only those groups to obtain gids. (Default: false) NFSv4_member_attr If LDAP_use_memberof_for_groups is true, this is the attribute to be searched for. (Default: memberUid) NFSv4_grouplist_filter An optional search filter for determining group membership. (No Default) LDAP_timeout_seconds Number of seconds before timing out an LDAP request (Default: 4) EXAMPLES
An example /etc/idmapd.conf file: [General] Verbosity = 0 Domain = domain.org Local-Realms = DOMAIN.ORG,MY.DOMAIN.ORG,YOUR.DOMAIN.ORG [Mapping] Nobody-User = nfsnobody Nobody-Group = nfsnobody [Translation] Method = umich_ldap,nsswitch GSS-Methods = umich_ldap,static [Static] johndoe@OTHER.DOMAIN.ORG = johnny [UMICH_SCHEMA] LDAP_server = ldap.domain.org LDAP_base = dc=org,dc=domain SEE ALSO
idmapd(8) svcgssd(8) BUGS
Report bugs to <nfsv4@linux-nfs.org> 19 Nov 2008 idmapd.conf(5)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy