Hi Roland, I commented line 46 in lib/modules/device.inc and it works. But I do not need the posixAccount object class (auxiliary) for the management of Samba machine. The tests I've done with the ldif file below are very successful, the object class posixAccount is not necessary. More, use the posixAccount object class generates the wrong icon in the browser ldap (Apache Directory Studio) ie the icon corresponding to the object classes person, inetOrgPerson, posixAccount and user.
May be possible in this case to do without the module Unix (posixAccount) in Lam configuration Modules and replace it with a custom field to enter the uid, or better including uid in Samba3 (samSamAccount) module. What do you think ? Is this that you provide in 4.2 ? - ldif file sufficient to create a new machine Samba with the ldapadd command : dn: cn=B2TESTLAM4,ou=hosts,dc=enfa.fr,dc=local objectClass: sambaSamAccount objectClass: device sambaAcctFlags: [W ] sambaPrimaryGroupSID: S-1-5-21-1905493267-1041818301-753029000-515 sambaNTPassword: D900C0FEEECDAFC0B0238887296C8C7A sambaPwdLastSet: 1365583354 sambaSID: S-1-5-21-1905493267-1041818301-753029000-101000 cn: B2TESTLAM4 uid: B2TESTLAM4$ - entry extracted from backup ldap (slapcat) after creating B2TESTLAM4 machine : dn: cn=B2TESTLAM4,ou=hosts,dc=enfa.fr,dc=local objectClass: sambaSamAccount objectClass: device sambaAcctFlags: [W ] sambaPrimaryGroupSID: S-1-5-21-1905493267-1041818301-753029000-515 sambaNTPassword: D900C0FEEECDAFC0B0238887296C8C7A sambaPwdLastSet: 1365583354 sambaSID: S-1-5-21-1905493267-1041818301-753029000-101000 cn: B2TESTLAM4 uid: B2TESTLAM4$ structuralObjectClass: device entryUUID: 19b9651c-3607-1032-8dbe-6f441286b0dc creatorsName: uid=ldapadmin,ou=sysusers,dc=local createTimestamp: 20130410084803Z entryCSN: 20130410084803.478410Z#000000#000#000000 modifiersName: uid=ldapadmin,ou=sysusers,dc=local modifyTimestamp: 20130410084803Z Best regards, Pascal PASCAL CASSAGNES le samedi 6 avril 2013 à 09:35 +0200 a écrit: >Hi Roland, >Thank you to consider this request and provide a patch for 4.2. >I'll try to time the solution you advocate me. I'll come to report the >result of this mailing list. >Thank you for your response. >Best regards, >Pascal > >Roland Gruber <[email protected]> le jeudi 4 avril 2013 à 18:01 +0200 >a écrit: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi Pascal, > >the problem is that both modules - device and posixAccount - manage >the cn attribute. But I think the modules can be changed to handle >this situation and I plan a fix for 4.2 (June). >In the meantime you can try to remove the conflict definition to >posixAccount in lib/modules/device.inc in line 46 (remove the whole line). >As long as you do not enter different common names on tab Unix and tab >Device it should work. > > >Best regards > >Roland > > >On 04.04.2013 10:13, PASCAL CASSAGNES wrote: >> Hello, We acquired Lam Pro to manage the entries stored in our LDAP >> directory, especially groups and Samba accounts (machine and >> user). Previously, we used another tool, OBM LDAP. Our LDAP >> directory is already populated. An LDIF for a machine (Samba) >> account in our OpenLDAP looks like this : dn: >> cn=B2RITM05,ou=hosts,dc=enfa.fr,dc=local objectClass: >> sambaSamAccount objectClass: ipHost objectClass: device cn: >> B2RITM05 description: user toto ipHostNumber: 172.16.5.101 uid: >> B2RITM05$ sambaSID: S-1-5-21-1905493267-1041818301-753029000-2430 >> sambaPrimaryGroupSID: S-1-5-21-1905493267-1041818301-753029000-515 >> sambaAcctFlags: [W] structuralObjectClass: device entryUUID: >> 72b5e366-7126-102d-87fa-e74194e7a160 creatorsName: >> uid=ldapadmin,ou=sysusers,dc=local createTimestamp: >> 20090107164617Z sambaDomainName: ENFA.FR sambaNTPassword: >> 77F20507F7A8285155964501C9029042 sambaPwdLastSet: 1345730747 >> entryCSN: 20120823140547.000000Z#000000#000#000000 modifiersName: >> uid=samba,ou=sysusers,dc=enfa.fr,dc=local modifyTimestamp: >> 20120823140547Z >> >> I want to create new machines Lam in this model, ie with the object >> class device (structural). How is this possible? I did not succeed, >> nor with the available modules, or even using custom fields, or a >> combination of both. >> >> Thank you for your help. Regards. >> >> Pascal >> >> >> >> >> >> >> >------------------------------------------------------------------------------ >> >> >Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire the >> most talented Cisco Certified professionals. Visit the Employer >> Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> >> >> >> _______________________________________________ Lam-public mailing >> list [email protected] >> https://lists.sourceforge.net/lists/listinfo/lam-public > >- -- > >Mit freundlichen Grüßen > >Roland Gruber >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.12 (GNU/Linux) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > >iEYEARECAAYFAlFdo9AACgkQq/ywNCsrGZ7a5wCfW88xxLbvzLXPlk99LdCkMrFB >H5sAn3Z7CmYFiR1URm5GfXzGrWJ4Wbnk >=Fv5t >-----END PGP SIGNATURE----- > >------------------------------------------------------------------------------ >Minimize network downtime and maximize team effectiveness. >Reduce network management and security costs.Learn how to hire >the most talented Cisco Certified professionals. Visit the >Employer Resources Portal >http://www.cisco.com/web/learning/employer_resources/index.html >_______________________________________________ >Lam-public mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/lam-public > > ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Lam-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lam-public
