Brocade Communications Systems 53-1002745-02 Marine Radio User Manual


 
Fabric OS Administrator’s Guide 169
53-1002745-02
Remote authentication
5
Example to add a group member
1. Create or edit a .ldif file with an entry similar to the following.
##########Adding an attr value
dn: cn=admin,ou=groups,dc=mybrocade,dc=com
changetype: modify
add: member
member: cn=test1,cn=Users,dc=mybrocade,dc=com
2. Enter the following ldapmodify command, where test1.ldif is the name of the file you edited in
step 1.
> ldapmodify -D cn=admin,dc=mybrocade,dc=com –x -w secret -f test1.ldif
Example to delete a group member
1. Create or edit a .ldif file with contents similar to the following.
########Deleting an attr value
#dn: cn=admin,ou=groups,dc=mybrocade,dc=com
#changetype: modify
#delete: member
#member: cn=Sachin,cn=Users,dc=mybrocade,dc=com
2. Enter the following ldapmodify command, where test2.ldif is the name of the file you edited in
step 1.
> ldapmodify -D cn=admin,dc=mybrocade,dc=com –x -w secret -f test2.ldif
Example to change the value of an attribute
1. Create or edit a .ldif file with contents similar to the following.
#######Replacing an attribute value
dn: cn=test,cn=Users,dc=mybrocade,dc=com
changetype: modify
replace: uid
uid: test
2. Enter the following ldapmodify command, where test3.ldif is the name of the file you edited in
step 1.
> ldapmodify -D cn=admin,dc=mybrocade,dc=com –x -w secret -f test3.ldif
The value of the uid attribute is changed to “test”.
Adding an Admin Domain or Virtual Fabric list
If your network uses Admin Domains, you can specify a list of Admin Domain numbers to which the
user has access.
Use the brcdAdVfData attribute to map a role to a Virtual Fabric or Admin Domain. To perform this
operation, you must modify the schema to include the definition of the brcdAdVfData attribute and
the definition of a user class that can use this attribute. You can then add this attribute to user
entries in the LDAP directory.
1. In a schema file, assign the brcdAdVfData attribute to a user class.
The following sample schema file defines a new objectClass named “user” with optional
attributes “brcdAdVfData” and “description”.
#New attr brcdAdVfData
attributetype ( 1.3.6.1.4.1.8412.100
NAME ( 'brcdAdVfData' )