Hello !
I create one samba user with command:
smbldap-useradd -a xbox -c "Game XBOX" -S "Sell games" -d /home/xbox -s /bin/false
Then I type: smbldap-passwd xbox #define password ldap user smbpasswd -a xbox # create user samba
So. I can to make login in my domain.
I checked atributtes gecos is: SystemUser.
After I log in domain, in the top menu windows show:System User.
I changed this value gecos, but each login the gecos show System User. It´s no changed never.
This command in line 2, not define gecos in LDAP, give default with "System user". If i change the value gecos in LDAP before te fist login, the gecos is with value correct. Any sugesstion ?
Thanks.
Rodrigo Faria
On 09.08.2012 13:45, rodrigo tavares wrote:
Hello !
I create one samba user with command:
smbldap-useradd -a xbox -c "Game XBOX" -S "Sell games" -d /home/xbox -s /bin/false
Then I type: smbldap-passwd xbox #define password ldap user smbpasswd -a xbox # create user samba
So. I can to make login in my domain.
I checked atributtes gecos is: SystemUser.
After I log in domain, in the top menu windows show:System User.
I changed this value gecos, but each login the gecos show System User. It´s no changed never.
This command in line 2, not define gecos in LDAP, give default with "System user". If i change the value gecos in LDAP before te fist login, the gecos is with value correct. Any sugesstion ?
Thanks.
Rodrigo Faria
Hi,
Samba takes the users name from the attribute displayName, not gecos.
Regards, Christian Manal
Hello Christian !
I change displayName but it not work.
I create user samba:smbldap-useradd -a marvel -S "Comics" -d /home/marvel -s /bin/false. See the gecos is System User.
http://rodrigofariat.files.wordpress.com/2012/08/ldap-settings.png
# marvel, Users, defensoria.net dn: uid=marvel,ou=Users,dc=defensoria,dc=net objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount objectClass: sambaSamAccount cn: marvel sn: marvel givenName: marvel uid: marvel uidNumber: 1042 gidNumber: 513 homeDirectory: /home/marvel loginShell: /bin/bash gecos: System User sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 displayName: marvel sambaSID: S-1-5-21-2665048014-4066921229-1505830771-3084 sambaPrimaryGroupSID: S-1-5-21-2665048014-4066921229-1505830771-513 sambaLogonScript: logon.bat Then, I changed displayName
http://rodrigofariat.files.wordpress.com/2012/08/ldap-settings2.png
# marvel, Users, defensoria.net dn: uid=marvel,ou=Users,dc=defensoria,dc=net objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount objectClass: sambaSamAccount cn: marvel sn: marvel givenName: marvel uid: marvel uidNumber: 1042 gidNumber: 513 homeDirectory: /home/marvel loginShell: /bin/bash gecos: System User sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaSID: S-1-5-21-2665048014-4066921229-1505830771-3084 sambaPrimaryGroupSID: S-1-5-21-2665048014-4066921229-1505830771-513 sambaLogonScript: logon.bat sambaProfilePath: \PDC-SRV\profiles\marvel sambaHomePath: \PDC-SRV\marvel sambaHomeDrive: H: sambaLMPassword: 37CB7D408A71AB28AAD3B435B51404EE sambaAcctFlags: [U] sambaNTPassword: D8139AC71D1B08A58445C69F60DB30AD sambaPwdLastSet: 1344522453 sambaPwdMustChange: 1348410453 sambaPwdCanChange: 2147483647 displayName: Comix Marvel sambaProfilePath: \PDC-SRV\profiles\marvel sambaHomePath: \PDC-SRV\marvel sambaHomeDrive: H: sambaLMPassword: 37CB7D408A71AB28AAD3B435B51404EE sambaAcctFlags: [U] sambaNTPassword: D8139AC71D1B08A58445C69F60DB30AD sambaPwdLastSet: 1344522453 sambaPwdMustChange: 1348410453
# After commands LDAP, the command getent passwd
marvel:x:1042:513:System User:/home/marvel:/bin/bash
You can see this user still with System User, when i log in domain, in the top menu windows. Come Systemuser.See the images.
http://rodrigofariat.files.wordpress.com/2012/08/ldap-settings3.png
Thanks,
Rodrigo Faria
________________________________
De: Christian Manal moenoel@informatik.uni-bremen.de Para: openldap-technical@openldap.org Enviadas: Quinta-feira, 9 de Agosto de 2012 9:15 Assunto: Re: LDAP Entry with gecos
On 09.08.2012 13:45, rodrigo tavares wrote:
Hello !
I create one samba user with command:
smbldap-useradd -a xbox -c "Game XBOX" -S "Sell games" -d /home/xbox -s /bin/false
Then I type: smbldap-passwd xbox #define password ldap user smbpasswd -a xbox # create user samba
So. I can to make login in my domain.
I checked atributtes gecos is: SystemUser.
After I log in domain, in the top menu windows show:System User.
I changed this value gecos, but each login the gecos show System User. It´s no changed never.
This command in line 2, not define gecos in LDAP, give default with "System user". If i change the value gecos in LDAP before te fist login, the gecos is with value correct. Any sugesstion ?
Thanks.
Rodrigo Faria
Hi,
Samba takes the users name from the attribute displayName, not gecos.
Regards, Christian Manal
openldap-technical@openldap.org