Re: [Samba] adding users in smbpasswd file instead of Directory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saravanan wrote: | Hi, | | I am new to ldap. I am following Gerald Carter ldap | system admin book. | | when i add user using | | [EMAIL PROTECTED] openldap]# smbpasswd -a saravanan | [ OK ] | New SMB password: | Retype new SMB password: | | it is updating users in /etc/samba/smbpasswd file | instead of updating the Directory. Both openldap and | samba runs in the same server. First I compiled samba | without --with-ldapsam. Now i compiled the samba with | --with-ldapsam. Still it is updating smbpasswd file. Saravanan, I need to update the book. That covers the LDAP setup for Samba 2.2. For now, you are better off following the passdb documentations in the samba/docs/ directory. | [global] |netbios name = LDAP |workgroup = LDAP and don't set the netbios name and workgroup to the values. It will be painful. probably samba should do some checks: 1) both wins server and wins support set 2) netbios name = workgroup I'd suggest that samba won't start if it encounters such things in smb.conf. cheers, jerrty = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC4qcOIR7qMdg1EfYRAksRAKDKtpcKjyviIfF0oFfgYnzdCFNDUQCg599o 3pVTiQ9FfdR7NCl6jROrNaU= =lbvo -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] adding users in smbpasswd file instead of Directory
Hi, I am new to ldap. I am following Gerald Carter ldap system admin book. when i add user using [EMAIL PROTECTED] openldap]# smbpasswd -a saravanan [ OK ] New SMB password: Retype new SMB password: it is updating users in /etc/samba/smbpasswd file instead of updating the Directory. Both openldap and samba runs in the same server. First I compiled samba without --with-ldapsam. Now i compiled the samba with --with-ldapsam. Still it is updating smbpasswd file. smb.conf [global] netbios name = LDAP workgroup = LDAP server string = LDAP Rules the World encrypt passwords = yes unix password sync = false security = user smb passwd file= /etc/samba/smbpasswd log file = /var/log/samba/log.%m log level = 0 max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain logons = true os level = 80 preferred master = true local master = true domain master = true dns proxy = true wins support = true # domain admin group = ajith logon path = \\LDAP\profiles\%u #logon path = \\%L\profile\%U logon drive= U: logon home = \\LDAP\%u logon script = logon.cmd #invalid users = root ldap admin dn = cn=root,dc=ldap,dc=com ldap server= ldap.ldap.com ldap port = 389 ldap suffix= dc=ldap,dc=com ldap ssl = no ldap filter= ((uid=%U)(objectclass=sambaAccount)) [homes] comment= Home Directories valid users= %S read only = false create mask= 0600 directory mask = 0700 browseable = false [netlogon] comment = Network Logon Service path= /usr/local/var/samba/netlogon writable= no # why would we want these? # guest ok= yes # share modes = no [profiles] path = /usr/local/var/samba/profiles writeable = true browseable = false create mode= 0600 directory mode = 0700 # why would we want this? # guest ok = yes When I give testparm command to check the smb.conf file it says [EMAIL PROTECTED] openldap]# testparm -f /usr/local/samba/lib/smb.conf Load smb config files from /usr/local/samba/lib/smb.conf Unknown parameter encountered: ldap server Ignoring unknown parameter ldap server Unknown parameter encountered: ldap port Ignoring unknown parameter ldap port Processing section [homes] Processing section [netlogon] Processing section [profiles] Loaded services file OK. Server role: ROLE_DOMAIN_PDC Press enter to see a dump of your service definitions Please help me to fix this. Regards, Saravanan Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adding users in smbpasswd file instead of Directory
You can use IDEALX LDAP scripts to add users and groups. If you don't want to use IDEALX scripts, you will need to create a LDIF file and the populate your directory. It will be a lot easier to use the IDEALX scripts. you can download the scripts at www.IDEALX.org smbpasswd -a , only adds user to samba. To add users using the IDEALX script just run= ./smbldap-adduser -a -m usrnamegoeshere --mark - Original Message - From: Saravanan [EMAIL PROTECTED] Date: Saturday, July 23, 2005 6:07 am Subject: [Samba] adding users in smbpasswd file instead of Directory Hi, I am new to ldap. I am following Gerald Carter ldap system admin book. when i add user using [EMAIL PROTECTED] openldap]# smbpasswd -a saravanan [ OK ] New SMB password: Retype new SMB password: it is updating users in /etc/samba/smbpasswd file instead of updating the Directory. Both openldap and samba runs in the same server. First I compiled samba without --with-ldapsam. Now i compiled the samba with --with-ldapsam. Still it is updating smbpasswd file. smb.conf [global] netbios name = LDAP workgroup = LDAP server string = LDAP Rules the World encrypt passwords = yes unix password sync = false security = user smb passwd file= /etc/samba/smbpasswd log file = /var/log/samba/log.%m log level = 0 max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain logons = true os level = 80 preferred master = true local master = true domain master = true dns proxy = true wins support = true # domain admin group = ajith logon path = \\LDAP\profiles\%u #logon path = \\%L\profile\%U logon drive= U: logon home = \\LDAP\%u logon script = logon.cmd #invalid users = root ldap admin dn = cn=root,dc=ldap,dc=com ldap server = ldap.ldap.com ldap port = 389 ldap suffix= dc=ldap,dc=com ldap ssl = no ldap filter = ((uid=%U)(objectclass=sambaAccount)) [homes] comment= Home Directories valid users= %S read only = false create mask= 0600 directory mask = 0700 browseable = false [netlogon] comment = Network Logon Service path= /usr/local/var/samba/netlogon writable= no # why would we want these? # guest ok= yes # share modes = no [profiles] path = /usr/local/var/samba/profiles writeable = true browseable = false create mode= 0600 directory mode = 0700 # why would we want this? # guest ok = yes When I give testparm command to check the smb.conf file it says [EMAIL PROTECTED] openldap]# testparm -f /usr/local/samba/lib/smb.conf Load smb config files from /usr/local/samba/lib/smb.conf Unknown parameter encountered: ldap server Ignoring unknown parameter ldap server Unknown parameter encountered: ldap port Ignoring unknown parameter ldap port Processing section [homes] Processing section [netlogon] Processing section [profiles] Loaded services file OK. Server role: ROLE_DOMAIN_PDC Press enter to see a dump of your service definitions Please help me to fix this. Regards, Saravanan Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] adding users in smbpasswd file instead of Directory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saravanan wrote: | Hi, | | I am new to ldap. I am following Gerald Carter ldap | system admin book. | | when i add user using | | [EMAIL PROTECTED] openldap]# smbpasswd -a saravanan | [ OK ] | New SMB password: | Retype new SMB password: | | it is updating users in /etc/samba/smbpasswd file | instead of updating the Directory. Both openldap and | samba runs in the same server. First I compiled samba | without --with-ldapsam. Now i compiled the samba with | --with-ldapsam. Still it is updating smbpasswd file. Saravanan, I need to update the book. That covers the LDAP setup for Samba 2.2. For now, you are better off following the passdb documentations in the samba/docs/ directory. | [global] |netbios name = LDAP |workgroup = LDAP and don't set the netbios name and workgroup to the values. It will be painful. cheers, jerrty = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC4qcOIR7qMdg1EfYRAksRAKDKtpcKjyviIfF0oFfgYnzdCFNDUQCg599o 3pVTiQ9FfdR7NCl6jROrNaU= =lbvo -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba