Jefferson Davis
2014-Jun-27 17:34 UTC
[Samba] Samba 4.1.8 Importing automountmap ldif entries from existing OpenLDAP setup or ?
So, I have a test domain set up with rfc2307 = yes . Now I'm trying to figure out if a) my nfs automount data came over from OpenLDAP, and b) if not, how to get it into samba 4's ldap, or something else??? Do I need to rethink my approach? Mount locations are pretty consistent based on primary group/userid Needs to work on Linux. Existing entries look like this... # /u, auto.master, standard.k12.ca.us dn: cn=/u,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us objectClass: top objectClass: automount cn: /u automountInformation: ldap:ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us description: use this if you want (useful for irix but thats another story) # /net, auto.master, standard.k12.ca.us dn: cn=/net,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us objectClass: top objectClass: automount cn: /net description: auto.master automountInformation: file:/etc/auto.net # jdavis, auto_data, standard.k12.ca.us dn: cn=jdavis,ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us objectClass: automount cn: jdavis automountInformation: -fstype=nfs,hard,intr,nodev,nosuid,nolock,noatime,rsize= 32768,wsize=32768 scale.standard.k12.ca.us:/fs0/shares/Staff/jdavis -- Jefferson K Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 661.392.2110 ext 120 (office) http://district.standard.k12.ca.us District Users: Click here to report technology issues
Rowland Penny
2014-Jun-27 17:43 UTC
[Samba] Samba 4.1.8 Importing automountmap ldif entries from existing OpenLDAP setup or ?
On 27/06/14 18:34, Jefferson Davis wrote:> So, I have a test domain set up with rfc2307 = yes . > > Now I'm trying to figure out if a) my nfs automount data came over from OpenLDAP, and b) if not, how to get it into samba 4's ldap, or something else??? Do I need to rethink my approach?a) I doubt very much if the classicupgrade transferred the automount info. b) you need to extend the AD schema, see here: http://linuxcostablanca.blogspot.co.uk/2013_09_01_archive.html Rowland> > Mount locations are pretty consistent based on primary group/userid > > Needs to work on Linux. > > Existing entries look like this... > > # /u, auto.master, standard.k12.ca.us > dn: cn=/u,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us > objectClass: top > objectClass: automount > cn: /u > automountInformation: ldap:ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us > description: use this if you want (useful for irix but thats another story) > > # /net, auto.master, standard.k12.ca.us > dn: cn=/net,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us > objectClass: top > objectClass: automount > cn: /net > description: auto.master > automountInformation: file:/etc/auto.net > > > # jdavis, auto_data, standard.k12.ca.us > dn: cn=jdavis,ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us > objectClass: automount > cn: jdavis > automountInformation: -fstype=nfs,hard,intr,nodev,nosuid,nolock,noatime,rsize> 32768,wsize=32768 scale.standard.k12.ca.us:/fs0/shares/Staff/jdavis > >
steve
2014-Jun-27 20:21 UTC
[Samba] Samba 4.1.8 Importing automountmap ldif entries from existing OpenLDAP setup or ?
On Fri, 2014-06-27 at 10:34 -0700, Jefferson Davis wrote:> So, I have a test domain set up with rfc2307 = yes . > > Now I'm trying to figure out if a) my nfs automount data came over from OpenLDAP, and b) if not, how to get it into samba 4's ldap, or something else??? Do I need to rethink my approach? > > Mount locations are pretty consistent based on primary group/userid > > Needs to work on Linux. > > Existing entries look like this... > > # /u, auto.master, standard.k12.ca.us > dn: cn=/u,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us > objectClass: top > objectClass: automount > cn: /u > automountInformation: ldap:ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us > description: use this if you want (useful for irix but thats another story) > > # /net, auto.master, standard.k12.ca.us > dn: cn=/net,ou=auto.master,dc=standard,dc=k12,dc=ca,dc=us > objectClass: top > objectClass: automount > cn: /net > description: auto.master > automountInformation: file:/etc/auto.net > > > # jdavis, auto_data, standard.k12.ca.us > dn: cn=jdavis,ou=auto_data,dc=standard,dc=k12,dc=ca,dc=us > objectClass: automount > cn: jdavis > automountInformation: -fstype=nfs,hard,intr,nodev,nosuid,nolock,noatime,rsize= > 32768,wsize=32768 scale.standard.k12.ca.us:/fs0/shares/Staff/jdavisHi We cover the autofs possibilities for AD here: http://linuxcostablanca.blogspot.com.es/2013/09/samba4-autofs-with-rfc2307bis-schema.html Whilst the method will be the same for extending the schema, the classes and attributes you need for your schema are different but listed in the same link. I'm guessing, but converting your ldifs into something either rfc2307bis or nis can understand should be easy enough. BTW, if you can convert to the nis schema, Samba4 already has that built in. Good luck, Steve