Difference between revisions of "Talk:LDAP"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Test:
+
==Test==
getent passwd # This should show the local passwd and also the ldap entries.
+
*getent passwd # This should show the local passwd and also the ldap entries.
id username    # This should show the groups of the user
+
*id username    # This should show the groups of the user
ldapsearch -x '(uid=username)' # All info on user, Check presence of ldap
+
*ldapsearch -x '(uid=username)' # All info on user, Check presence of ldap
ldapsearch -ZZ .....                    # Make sure the encryption works as well.
+
*ldapsearch -ZZ .....                    # Make sure the encryption works as well.
 +
==Add User Account==
 +
* The preferred method of user account creation is the script on einstein: <code>env HOME=/root  /usr/local/bin/adduser-npg </code>
 +
* You can also manipulate the tables from Improv with the program JXplorer.
 +
* More info to be extracted from LDAP server: <code>env HOME=/root ldapsearch '(uid=maurik)'</code>
  
Add User Account
+
==LDAP manipulations==
The preferred method of user account creation is the script on einstein:
+
*Print directory of all available maps:  ldapcat -x
env HOME=/root  /usr/local/bin/adduser-npg
+
*Print a particular map: ldapcat <mapname>
 
+
*Manipulate the user accounts: See adduser-npg
You can also manipulate the tables from Improv with the program JXplorer.
+
*Change something: lusermod --shell /bin/tcsh <user>
 
 
More info to be extracted from LDAP server:
 
env HOME=/root ldapsearch '(uid=maurik)'
 
 
 
LDAP manipulations:
 
 
 
Print directory of all available maps:  ldapcat -x
 
Print a particular map: ldapcat <mapname>
 
 
 
Manipulate the user accounts: See adduser-npg
 
Change something: lusermod --shell /bin/tcsh <user>
 

Latest revision as of 13:55, 10 July 2007

Test

  • getent passwd # This should show the local passwd and also the ldap entries.
  • id username # This should show the groups of the user
  • ldapsearch -x '(uid=username)' # All info on user, Check presence of ldap
  • ldapsearch -ZZ ..... # Make sure the encryption works as well.

Add User Account

  • The preferred method of user account creation is the script on einstein: env HOME=/root /usr/local/bin/adduser-npg
  • You can also manipulate the tables from Improv with the program JXplorer.
  • More info to be extracted from LDAP server: env HOME=/root ldapsearch '(uid=maurik)'

LDAP manipulations

  • Print directory of all available maps: ldapcat -x
  • Print a particular map: ldapcat <mapname>
  • Manipulate the user accounts: See adduser-npg
  • Change something: lusermod --shell /bin/tcsh <user>