Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Implementing Samba 4

You're reading from  Implementing Samba 4

Product type Book
Published in Apr 2014
Publisher
ISBN-13 9781782166580
Pages 284 pages
Edition 1st Edition
Languages
Author (1):
Marcelo Leal Marcelo Leal
Profile icon Marcelo Leal
Toc

Table of Contents (19) Chapters close

Implementing Samba 4
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Installing the Samba 4 Server 2. Provisioning Samba 4 as an AD Domain Controller 3. Managing the Samba Active Directory Server 4. Replacing a Microsoft Windows Active Directory Server 5. Upgrading from Samba Server Version 3 6. Printing and File Services 7. Extending the Active Directory Schema Using Samba 4 8. Implementing a Highly Available Distributed File Server 9. The Samba 4 Python Scripting Interface References
Index

Introducing Samba 4 Python bindings


Another use of the dir()command is to list the functions and variables available on each module we have loaded on Python. We will issue this command in the Python interpreter as follows:

>>> dir(samba)
['Ldb', 'MAX_NETBIOS_NAME_LEN', '_Ldb', '__builtins__', '__doc__', '__docformat__', '__file__', '__name__', '__package__', '__path__', '_glue', '_ldb', 'check_all_substituted', 'dn_from_dns_name', 'ensure_external_module', 'generate_random_password', 'get_debug_level', 'import_bundled_package', 'in_source_tree', 'interface_ips', 'is_valid_netbios_char', 'ldb', 'nttime2string', 'nttime2unix', 'os', 'param', 'read_and_sub_file', 'samba', 'set_debug_level', 'setup_file', 'source_tree_topdir', 'strcasecmp_m', 'strstr_m', 'substitute_var', 'sys', 'unix2nttime', 'valid_netbios_name', 'version']

So, we used the dir() function by passing an argument with it (for example, samba), and so the output was different. If we call it without passing arguments,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}