RE: [Samba] Argument createcomputer does not work in net rpc join
Jerry, Thanks for your response. Any specific reason why 'net rpc join' doesn't support it? Since we needed this functionality (customer didn't like it when we said we don't support that :)), we wrote a small function that utilizes smbldap_xxx routines. Specifically our small function utilizes the following smbldap_xxx routines: smbldap_set_mod - to set 'cn', 'sAMAccountName', 'objectClass', 'userAccountControl'. smbldap_init - to initialize the connection with AD server smbldap_set_creds - set the credentials for the connection smbldap_add - to precreate the machine account object in the location. Please let me know if we are doing something fundamentally wrong. I will be happy to submit the patch to samba group or to anyone who requires it. Regards Raj Pagaku -Original Message- From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 2:12 PM To: Raj Pagaku Cc: samba@lists.samba.org Subject: Re: [Samba] Argument createcomputer does not work in net rpc join -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raj Pagaku wrote: We are using samba-3.0.25a and we want to join our system onto the Active Directory server in a specific location. The argument 'createcomputer' is exactly what we want and it works perfectly when we do a 'net ads join' but fails when we do a 'net rpc join'. The computer object always gets created in the 'Computers' folder. Looking at the code it appears that the 'net rpc join' doesn't support the 'createcomputer' argument. Is there a specific reason why it isn't supported? Are there plans to support the 'createcomputer' argument in the 'net rpc join' command in any future releases? No. Net rpc join does not support creating the machine in a specific OU. That is a AD-specific operation. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGw2wcIR7qMdg1EfYRAmtwAJ9YtsnY6Gbeeo+mitxzC1Tq1sTrlgCg73jf IJgliyyenW/LROTbAXYs+K4= =Ibsu -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Argument createcomputer does not work in net rpc join
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raj Pagaku wrote: Jerry, Thanks for your response. Any specific reason why 'net rpc join' doesn't support it? Because 'net rpc join' is for join NT4 equivalent domains which have no concept of OUs. Since we needed this functionality (customer didn't like it when we said we don't support that :)), we wrote a small function that utilizes smbldap_xxx routines. Specifically our small function utilizes the following smbldap_xxx routines: smbldap_set_mod - to set 'cn', 'sAMAccountName', 'objectClass', 'userAccountControl'. smbldap_init - to initialize the connection with AD server smbldap_set_creds - set the credentials for the connection smbldap_add - to precreate the machine account object in the location. Please let me know if we are doing something fundamentally wrong. I will be happy to submit the patch to samba group or to anyone who requires it. Sounds fine for your case but this should not be part of the core net rpc jon code itself. You are solving a specific issue for a specific environment. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGyYEdIR7qMdg1EfYRAkphAJ9XxN03wUA8kSkScwB9BbhbqIOgcQCgzWdU OGgkf+wA+73Dlhut36pm7ds= =hxQP -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Argument createcomputer does not work in net rpc join
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raj Pagaku wrote: We are using samba-3.0.25a and we want to join our system onto the Active Directory server in a specific location. The argument 'createcomputer' is exactly what we want and it works perfectly when we do a 'net ads join' but fails when we do a 'net rpc join'. The computer object always gets created in the 'Computers' folder. Looking at the code it appears that the 'net rpc join' doesn't support the 'createcomputer' argument. Is there a specific reason why it isn't supported? Are there plans to support the 'createcomputer' argument in the 'net rpc join' command in any future releases? No. Net rpc join does not support creating the machine in a specific OU. That is a AD-specific operation. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGw2wcIR7qMdg1EfYRAmtwAJ9YtsnY6Gbeeo+mitxzC1Tq1sTrlgCg73jf IJgliyyenW/LROTbAXYs+K4= =Ibsu -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Argument createcomputer does not work in net rpc join
Hello, Any suggestions or pointers from the folks would be highly appreciated. I didn't attach smb.conf since this was a generic question. Thanks in advance. Regards Raj Pagaku -Original Message- From: Raj Pagaku Sent: Friday, August 03, 2007 2:45 PM To: samba@lists.samba.org Subject: [Samba] Argument createcomputer does not work in net rpc join Hello, We are using samba-3.0.25a and we want to join our system onto the Active Directory server in a specific location. The argument 'createcomputer' is exactly what we want and it works perfectly when we do a 'net ads join' but fails when we do a 'net rpc join'. The computer object always gets created in the 'Computers' folder. Looking at the code it appears that the 'net rpc join' doesn't support the 'createcomputer' argument. Is there a specific reason why it isn't supported? Are there plans to support the 'createcomputer' argument in the 'net rpc join' command in any future releases? Thanks Raj Pagaku -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba