Sponsored Content
Operating Systems Linux Red Hat pam_krb5 UID mapping (clashing UIDs) Post 302566177 by cambridge on Wednesday 19th of October 2011 04:47:33 PM
Old 10-19-2011
Question pam_krb5 UID mapping (clashing UIDs)

Hi,

I'm considering implementing pam_krb5 on RHEL 5.5 and Solaris 10, and I'm in an environment that has a number of legacy NIS domains. They've all been migrated into Active Directory, RFC2307, with the NIS maps that differed in each domain kept within its own container. However, users and groups have been merged together.

This now lends itself to an interesting problem. Some users have clashing UIDs. User 'joe' might login to a machine in domain 'A' and should rightly have UID 120. However, when 'joe' logs into a machine in domain 'B' he's going to need a UID of say 140. Same username, different UID.

We need a way of overriding the UID, GID, home directory and login shell for particular users on a domain-by-domain basis. I've seen this done with commercial products using GPOs in AD, and I'm guessing, some funky pam_krb5 code?

Can anyone think of either a) how we might achieve this using features already available in one or other pam_krb5, or b) if I have to hack someone's pam_krb5 to do this which one I should pick and which features this might be most similar to?

I'm a C whizz, so don't mind hacking a solution, but would rather not re-invent the wheel.

Thanks,
Mark.

p.s. it's not possible to clean up the data (too big a problem).
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

about UIDs, very urgent

hello guys, well as i mentioned first i have a serious problem, i need your help. i have a hosting plan with linux, apache and php. i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (1 Reply)
Discussion started by: mehdi
1 Replies

2. HP-UX

Valid ranges for uids for HP-UX

Hi , I am using adduser in hp-ux to create users in Hp-ux. i would like to know what are the valid values for uids and gids in hp-ux what are the rannges for the valid uids . How to check what are the used uids in Hp-ux . Thanks Narendra babu C (7 Replies)
Discussion started by: naren_chella
7 Replies

3. AIX

UIDs being overwritten immediately

We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies

4. UNIX for Advanced & Expert Users

keep UIDs/GIDs consistent

Hi, What is the best ways to keep UIDs and GIDs consistent across unix and linux server. my company have a servers running on hpux, linux, aix and many of them have veritas cluster and hacmp running, many time user account have been created only on one of the cluster node and not the others... (4 Replies)
Discussion started by: robertngo
4 Replies

5. Solaris

UIDs in /etc/passwd file

Hi all, I am bit confused about UIDs on my server where LDAP athentication happens. UIDs are generally in the range of 0-65534 for any Solaris OS version(correct if i am wrong). My server is running on Solaris 9. Below are user accounts available on my server. ... (10 Replies)
Discussion started by: vvpotugunta
10 Replies

6. Shell Programming and Scripting

Creating unique mapping from multiple mapping

Hello, I do not know if this is the right title to use. I have a large dictionary database which has the following structure: where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =. What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies

7. UNIX and Linux Applications

Samba loosing SID UID mapping

Hi all, I don't know how many times I've setup samba shares, but... It's been a while since the last time. The SID UID maps used to always seem random. I.E. if I had to move the data to another box, I'd have to note all of the SID / UID relations and write scripts to convert them on the new... (0 Replies)
Discussion started by: mph
0 Replies

8. Homework & Coursework Questions

Display usernames and their UIDs

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script that displays all usernames and their UIDs in the following fashion: name1 uid=999 name2... (2 Replies)
Discussion started by: baniel
2 Replies
pam_krb5_storetmp(8)					   System Administrator's Manual				      pam_krb5_storetmp(8)

NAME
/lib64/security/pam_krb5/pam_krb5_storetmp - Temporary file helper SYNOPSIS
pam_krb5_storetmp pattern [uid] [gid] DESCRIPTION
The pam_krb5.so module uses pam_krb5_storetmp to create and remove temporary files. It is not intended for any other use. ARGUMENTS
pattern A filename pattern of the form /tmp/fooXXXXXX. A temporary file will be created using mkstemp(3) and any data provided to standard input will be piped to the file. Upon reading an end-of-file, the helper will print the name of the created file. If the pattern does not end with the distinctive patterh XXXXXX, then the file is simply deleted. uid An optional numeric UID which the helper will attempt to switch to before creating the file. The helper continues in its task if the attempt fails. gid An optional numeric GID which the helper will attempt to switch to before creating the file. The helper continues in its task if the attempt fails. FILES
/lib64/security/pam_krb5.so SEE ALSO
mkstemp(3) pam_krb5(5) pam_krb5(8) BUGS
Probably, but let's hope not. If you find any, please file them in the bug database at http://bugzilla.redhat.com/ against the "pam_krb5" component. AUTHOR
Nalin Dahyabhai <nalin@redhat.com> openSUSE 2005/10/05 pam_krb5_storetmp(8)
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy