09-17-2012
Trouble assigning user to group in OpenLDAP
Hello,
I am working on setup LDAP Server and facing issue related to assigning user to a group. Below is the LDAP structure i am using.
I have created Users,Groups and Servers ou's and sub ou's added to the same [bugbase,ftp,samba,svn,tcms,wiki] or Users as well as Groups OU.
Logged in as: cn=Manager,dc=bebolabs,dc=net
+--> dc=bebolabs,dc=net (3)
+--> ou=Groups (6)
| ---> ou=bugbase
| ---> ou=ftp
| ---> ou=samba
| ---> ou=svn
| ---> ou=tcms
| ---> ou=wiki
---> ou=Systems
+--> ou=Users (6)
| ---> ou=bugbase
| ---> ou=ftp
| ---> ou=samba
| ---> ou=svn
| ---> ou=tcms
| ---> ou=wiki
Now i created a user under Users->FTP->username ou and group created under Groups->FTP->groupname ou.
I assigned username under Users->FTP to group under Groups->FTP.
But on login from client machine below error is throwing and user is n
[root@ldapclnt ~]# su - sunny
id: cannot find name for group ID 500
[sunny@ldapclnt ~]$ id
uid=500(sunny) gid=500 groups=500
[sunny@ldapclnt ~]$
Please help me on this how to fix this.
Below is my ldapgroup.ldif and ldapuser.ldif
ldapgroup.ldif
dn: cn=sunny,ou=ftp,ou=Groups,dc=bebolabs,dc=net
objectClass: posixGroup
cn: sunny
gidNumber: 500
memberuid: sunny
ldapuser.ldif
dn: uid=sunny,ou=ftp,ou=Users,dc=bebolabs,dc=net
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: sunny
sn: sunny
givenName: sunny
cn: sunny
displayName: sunny
uidNumber: 500
gidNumber: 500
userPassword: {crypt}$1$tayZSy59$DcPHe6xQC3IvlNLE5u1ix1
gecos: sunny
loginShell: /bin/bash
homeDirectory: /home/sunny
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 0
shadowMax: 99999
shadowLastChange: 15240
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!!,
I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them)
Any ideas how to do it??
SAM doesnt seem to be working.. Any way of doing it from command line??
... (1 Reply)
Discussion started by: jyotipg
1 Replies
2. Linux
Hi,
I created a user, however, l want this user to be able to configure some services in REd Hat 8.0 such changing of Network address which is exclusive to root super user. Unlike in Openserver or Unixware were you can assign authorization and privileges to user. I have not being able to figure... (5 Replies)
Discussion started by: kayode
5 Replies
3. Shell Programming and Scripting
i'm on a Mac running BSD unix.
i have a script in which i ask the user to input the name of a mounted volume. i then call SED to substitute backslashes and spaces in place of the spaces. that looks like this:
echo "Enter the name of the volume"
read Volume
echo "You've chosen \"$Volume\""... (7 Replies)
Discussion started by: hungryd
7 Replies
4. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am using OpenLDAP for authenticating my postfix mail server. Now i have to clean up some resigned users from the LDAP directory. I have the list of common names (CN) with me, how can i delete the LDAP users form with that list.
Regards,
Hima Kiran (2 Replies)
Discussion started by: ghimakiran
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I made an executable file in terminal and it looks like this.
echo Enter the name of the file without the .wig extension
read NAME
echo Enter the ratio
read RATIO
awk '{$2*=$RATIO;{print $0}}' ${NAME}.wig > ${NAME}normalized.wig
I have a file with several million lines that look... (6 Replies)
Discussion started by: wyarosh
6 Replies
7. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
8. Linux
Hello,
i try to add user john to secondary group, named groupB
this will add as primary group,
how can i add to secondary group??
dn: cn=groupB,ou=Groups,dc=ldap-server,dc=com
changetype: modify
add: memberuid
memberuid: john (1 Reply)
Discussion started by: prpkrk
1 Replies
9. Shell Programming and Scripting
OSX 10.9
Good morning/afternoon/evening.
I'm hoping to get some insight on assigning a variable when calling a function. The code below looks at my array and checks if the path exists. My actual code will have multiple arrays and I would like to define a specific array when I call the... (6 Replies)
Discussion started by: sudo
6 Replies
10. AIX
I want to remove hdisk1 from volume group diskpool_4 and migrate PV from hdisk1 to hdisk2 , but facing problems, so what is the quickest way to migratepv and remove hdisk1 --
# lspv | grep diskpool_4
hdisk1 00c7780e2e21ec86 diskpool_4 active
hdisk2 ... (2 Replies)
Discussion started by: filosophizer
2 Replies
LEARN ABOUT DEBIAN
genskyvec
GENSKYVEC(1) General Commands Manual GENSKYVEC(1)
NAME
genskyvec - compute patch radiance averages for a specific sky
SYNOPSIS
genskyvec [ -m N ][ -c r g b ]
DESCRIPTION
Genskyvec samples the Radinace sky description given on the standard input to generate a list of average patch radiances. If there is a
sun in the description, genskyvec will include its contribution in the three nearest sky patches, distributing energy according to centroid
proximity.
By default, genskyvec divides the sky into 2305 patches, plus one patch for the ground. This corresponds to Reinhart's extension of the
Tregenza sky, where the original 145 patches are subdivided into 16 subpatches, except at the zenith. A different subdivision may be spec-
ified via the -m option. The value given will be used to subdivide each dimension, so the default of 4 yields almost 16 times as many
patches as the original Tregenza sky, which can be specified with -m 1. A higher resolution sky is generally better for daylight coeffi-
cient analysis where solar position is important.
The -c option may be used to specify a color for the sky. The gray value should equal 1 for proper energy balance The default sky color is
-c 0.960 1.004 1.118 .
EXAMPLE
To generate 578 patches corresponding to a 2x2 subdivision of the Tregenza sky on a sunny equinox noon:
gensky 9 21 12 | genskyvec -m 2 > sky09_21_12.dat
AUTHOR
Greg Ward
SEE ALSO
dctimestep(1), genBSDF(1), gensky(1), gentregvec(1), rtcontrib(1), rtrace(1)
RADIANCE
12/09/09 GENSKYVEC(1)